We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00af280 commit 87f794eCopy full SHA for 87f794e
src/Analyser/TypeSpecifier.php
@@ -726,7 +726,7 @@ public function specifyTypesInCondition(
726
if (
727
$expr->expr instanceof FuncCall
728
&& $expr->expr->name instanceof Name
729
- && in_array($expr->expr->name->toLowerString(), ['array_search'], true)
+ && $expr->expr->name->toLowerString() === 'array_search'
730
&& count($expr->expr->getArgs()) >= 2
731
) {
732
$arrayArg = $expr->expr->getArgs()[1]->value;
0 commit comments