Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 87f794e

Browse files
committedJan 25, 2025·
fix
1 parent 00af280 commit 87f794e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎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)
Please sign in to comment.