Skip to content

Commit ba848a8

Browse files
committed
Fix
1 parent d332bf5 commit ba848a8

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/PHPStan/Rules/Properties/ReadOnlyPropertyAssignRuleTest.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,12 @@ public function testBug6773(): void
146146
$this->markTestSkipped('Test requires PHP 8.1.');
147147
}
148148

149-
$this->analyse([__DIR__ . '/data/bug-6773.php'], []);
149+
$this->analyse([__DIR__ . '/data/bug-6773.php'], [
150+
[
151+
'Readonly property Bug6773\Repository::$data is assigned outside of the constructor.',
152+
16,
153+
],
154+
]);
150155
}
151156

152157
}

0 commit comments

Comments
 (0)