Skip to content
Permalink
Browse files

Fix redundant condition (#2338)

TGenericObject is always a TNamedObject
  • Loading branch information
TysonAndre authored and muglug committed Nov 17, 2019
1 parent 2369bac commit ecf3abc396f24d8acc92a6807e04db913da78996
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/Psalm/Type/Atomic/TGenericObject.php
@@ -36,7 +36,7 @@ public function getKey()
$extra_types = '';
if ($this instanceof TNamedObject && $this->extra_types) {
if ($this->extra_types) {
$extra_types = '&' . implode('&', $this->extra_types);
}

0 comments on commit ecf3abc

Please sign in to comment.
You can’t perform that action at this time.