Skip to content

Commit bd84d93

Browse files
committed
Update MutatingScope.php
1 parent 953aec1 commit bd84d93

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)