Skip to content

Commit

Permalink
fix according to psalm analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
hirokinoue committed Sep 17, 2022
1 parent 2cf131f commit 9071e87
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -3653,8 +3653,8 @@ private static function getArrayKeyExistsAssertions(
)
: null;

if ($array_root) {
if ($first_var_name === null && isset($expr->getArgs()[0])) {
if ($array_root && isset($expr->getArgs()[0])) {
if ($first_var_name === null) {
$first_arg = $expr->getArgs()[0];

if ($first_arg->value instanceof PhpParser\Node\Scalar\String_) {
Expand Down

0 comments on commit 9071e87

Please sign in to comment.