Skip to content

Commit

Permalink
allow StaticPropertyFetch node to behave like Variable node
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokinoue committed Sep 17, 2022
1 parent 2f87077 commit 2cf131f
Showing 1 changed file with 1 addition and 0 deletions.
Expand Up @@ -3687,6 +3687,7 @@ private static function getArrayKeyExistsAssertions(
}
} elseif (($expr->getArgs()[0]->value instanceof PhpParser\Node\Expr\Variable
|| $expr->getArgs()[0]->value instanceof PhpParser\Node\Expr\PropertyFetch
|| $expr->getArgs()[0]->value instanceof PhpParser\Node\Expr\StaticPropertyFetch
)
&& $source instanceof StatementsAnalyzer
&& ($first_var_type = $source->node_data->getType($expr->getArgs()[0]->value))
Expand Down

0 comments on commit 2cf131f

Please sign in to comment.