Skip to content

Commit 60538da

Browse files
phpstan-botclaude
andcommitted
Remove unnecessary bug-14063 test from ReadOnlyPropertyAssignRuleTest
The test was asserting no errors from ReadOnlyPropertyAssignRule, which adds no value since the rule is not expected to handle this case. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent ac40a6f commit 60538da

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

tests/PHPStan/Rules/Properties/ReadOnlyPropertyAssignRuleTest.php

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,4 @@ public function testCloneWith(): void
180180
$this->analyse([__DIR__ . '/data/readonly-property-assign-clone-with.php'], []);
181181
}
182182

183-
#[RequiresPhp('>= 8.5')]
184-
public function testBug14063(): void
185-
{
186-
// readonly class properties modified via clone() from outside the class
187-
// are reported by AccessPropertiesInAssignRule, not this rule
188-
$this->analyse([__DIR__ . '/data/bug-14063.php'], []);
189-
}
190-
191183
}

0 commit comments

Comments
 (0)