Skip to content

Commit 612fcba

Browse files
staabmondrejmirtes
authored andcommitted
fix
1 parent 74b11d6 commit 612fcba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/Analyser/TypeSpecifier.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -726,7 +726,7 @@ public function specifyTypesInCondition(
726726
if (
727727
$expr->expr instanceof FuncCall
728728
&& $expr->expr->name instanceof Name
729-
&& in_array($expr->expr->name->toLowerString(), ['array_search'], true)
729+
&& $expr->expr->name->toLowerString() === 'array_search'
730730
&& count($expr->expr->getArgs()) >= 2
731731
) {
732732
$arrayArg = $expr->expr->getArgs()[1]->value;

0 commit comments

Comments
 (0)