Skip to content

Commit a7a7645

Browse files
committed
Update TypeSpecifier.php
1 parent fb014ee commit a7a7645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/TypeSpecifier.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ public function specifyTypesInCondition(
339339
if (
340340
!$context->null()
341341
&& $expr->right instanceof FuncCall
342-
&& count($expr->right->getArgs()) === 3
342+
&& count($expr->right->getArgs()) >= 3
343343
&& $expr->right->name instanceof Name
344344
&& in_array(strtolower((string) $expr->right->name), ['preg_match'], true)
345345
&& IntegerRangeType::fromInterval(0, null)->isSuperTypeOf($leftType)->yes()

0 commit comments

Comments
 (0)