Skip to content

Commit

Permalink
Switch to elseif
Browse files Browse the repository at this point in the history
  • Loading branch information
danog committed Apr 9, 2021
1 parent 3f0f5a8 commit 28c8e6e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3547,7 +3547,7 @@ private static function getArrayKeyExistsAssertions(
} else {
$first_var_name = null;
}
} else if ($expr->args[0]->value instanceof PhpParser\Node\Expr\Variable
} elseif ($expr->args[0]->value instanceof PhpParser\Node\Expr\Variable
&& $source instanceof StatementsAnalyzer
&& ($first_var_type = $source->node_data->getType($expr->args[0]->value))
) {
Expand Down

0 comments on commit 28c8e6e

Please sign in to comment.