Skip to content

Commit 812d7da

Browse files
committed
Fix build
1 parent 33c2cb1 commit 812d7da

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,9 @@ public function testBug6255(): void
509509
public 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

520517
public function testBug6466(): void

tests/PHPStan/Analyser/data/bug-6300.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@
22

33
namespace Bug6300;
44

5+
use AllowDynamicProperties;
6+
57
/**
68
* @mixin Bar
79
*/
10+
#[AllowDynamicProperties]
811
class Foo
912
{
1013

@@ -13,6 +16,7 @@ class Foo
1316
/**
1417
* @mixin Foo
1518
*/
19+
#[AllowDynamicProperties]
1620
class Bar
1721
{
1822

0 commit comments

Comments
 (0)