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 @@ -516,12 +516,9 @@ public function testBug6255(): void
516516 public function testBug6300 (): void
517517 {
518518 $ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-6300.php ' );
519- $ this ->assertCount (2 , $ errors );
519+ $ this ->assertCount (1 , $ errors );
520520 $ this ->assertSame ('Call to an undefined method Bug6300\Bar::get(). ' , $ errors [0 ]->getMessage ());
521- $ this ->assertSame (23 , $ errors [0 ]->getLine ());
522-
523- $ this ->assertSame ('Access to an undefined property Bug6300\Bar::$fooProp. ' , $ errors [1 ]->getMessage ());
524- $ this ->assertSame (24 , $ errors [1 ]->getLine ());
521+ $ this ->assertSame (27 , $ errors [0 ]->getLine ());
525522 }
526523
527524 public 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