Skip to content

Commit 55b9952

Browse files
rajyanondrejmirtes
authored andcommitted
fix
1 parent 5d1ee92 commit 55b9952

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

src/Analyser/MutatingScope.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4494,7 +4494,7 @@ public function filterBySpecifiedTypes(SpecifiedTypes $specifiedTypes): self
44944494
}
44954495

44964496
if (!$typeGuards[$conditionExprString]->equals($conditionalType)) {
4497-
continue 2;
4497+
continue;
44984498
}
44994499

45004500
$matchingConditions[$conditionExprString] = $conditionalType;

tests/PHPStan/Rules/Properties/TypesAssignedToPropertiesRuleTest.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -140,15 +140,7 @@ public function testTypesAssignedToPropertiesExpressionNames(): void
140140
66,
141141
],
142142
[
143-
'Property PropertiesFromArrayIntoObject\Foo::$float_test (float) does not accept float|int|string.',
144-
69,
145-
],
146-
[
147-
'Property PropertiesFromArrayIntoObject\Foo::$foo (string) does not accept float|int|string.',
148-
69,
149-
],
150-
[
151-
'Property PropertiesFromArrayIntoObject\Foo::$lall (int) does not accept float|int|string.',
143+
'Property PropertiesFromArrayIntoObject\Foo::$lall (int) does not accept string.',
152144
69,
153145
],
154146
[

0 commit comments

Comments
 (0)