File tree 2 files changed +6
-5
lines changed
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
509
509
public function testBug6300 (): void
510
510
{
511
511
$ errors = $ this ->runAnalyse (__DIR__ . '/data/bug-6300.php ' );
512
- $ this ->assertCount (2 , $ errors );
512
+ $ this ->assertCount (1 , $ errors );
513
513
$ 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 ());
518
515
}
519
516
520
517
public function testBug6466 (): void
Original file line number Diff line number Diff line change 2
2
3
3
namespace Bug6300 ;
4
4
5
+ use AllowDynamicProperties ;
6
+
5
7
/**
6
8
* @mixin Bar
7
9
*/
10
+ #[AllowDynamicProperties]
8
11
class Foo
9
12
{
10
13
@@ -13,6 +16,7 @@ class Foo
13
16
/**
14
17
* @mixin Foo
15
18
*/
19
+ #[AllowDynamicProperties]
16
20
class Bar
17
21
{
18
22
You can’t perform that action at this time.
0 commit comments