Skip to content

Commit ec4322e

Browse files
committed
Update MutatingScope.php
1 parent 0945d6a commit ec4322e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@ public function filterBySpecifiedTypes(SpecifiedTypes $specifiedTypes): self
32373237
$conditionalExpression->getTypeHolder()->getCertainty()->yes()
32383238
&& $specifiedHolder->getCertainty()->yes()
32393239
&& $conditionalTypeHolder->getCertainty()->yes()
3240-
&& ($guardType instanceof UnionType || $guardType instanceof IntegerRangeType)
3240+
&& $guardType->isScalar()->yes()
32413241
&& $guardType->isSuperTypeOf($specifiedHolder->getType())->yes()
32423242
) {
32433243
$subtypeMatch = true;

0 commit comments

Comments
 (0)