File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -509,12 +509,9 @@ public function testBug6255(): void
509509public function testBug6300 (): void
510510{
511511$ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-6300.php ' );
512- $ this ->assertCount (2 , $ errors );
512+ $ this ->assertCount (1 , $ errors );
513513$ this ->assertSame ('Call to an undefined method Bug6300\Bar::get(). ' , $ errors [0 ]->getMessage ());
514- $ this ->assertSame (23 , $ errors [0 ]->getLine ());
515-
516- $ this ->assertSame ('Access to an undefined property Bug6300\Bar::$fooProp. ' , $ errors [1 ]->getMessage ());
517- $ this ->assertSame (24 , $ errors [1 ]->getLine ());
514+ $ this ->assertSame (27 , $ errors [0 ]->getLine ());
518515}
519516
520517public function testBug6466 (): void
Original file line number Diff line number Diff line change 22
33namespace Bug6300 ;
44
5+ use AllowDynamicProperties ;
6+
57/**
68 * @mixin Bar
79 */
10+ #[AllowDynamicProperties]
811class Foo
912{
1013
@@ -13,6 +16,7 @@ class Foo
1316/**
1417 * @mixin Foo
1518 */
19+ #[AllowDynamicProperties]
1620class Bar
1721{
1822
You can’t perform that action at this time.
0 commit comments