Skip to content

Commit f7f30a7

Browse files
committed
Update MutatingScope.php
1 parent d5a6d29 commit f7f30a7

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/Analyser/MutatingScope.php

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3228,12 +3228,14 @@ public function filterBySpecifiedTypes(SpecifiedTypes $specifiedTypes): self
32283228
$allSuperType = false;
32293229
break;
32303230
}
3231-
if (!$specifiedExpressions[$holderExprString]->equals($conditionalTypeHolder)) {
3232-
$allExact = false;
3233-
if (!$conditionalTypeHolder->isSuperTypeOf($specifiedExpressions[$holderExprString])->yes()) {
3234-
$allSuperType = false;
3235-
break;
3236-
}
3231+
if ($specifiedExpressions[$holderExprString]->equals($conditionalTypeHolder)) {
3232+
continue;
3233+
}
3234+
3235+
$allExact = false;
3236+
if (!$conditionalTypeHolder->isSuperTypeOf($specifiedExpressions[$holderExprString])->yes()) {
3237+
$allSuperType = false;
3238+
break;
32373239
}
32383240
}
32393241
if ($allExact) {

0 commit comments

Comments
 (0)