Skip to content

Commit 6e327c2

Browse files
committed
fix test pre php 8.3
1 parent fcde1ca commit 6e327c2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,6 +1572,11 @@ public function testBug12800(): void
15721572

15731573
public function testBug12949(): void
15741574
{
1575+
// Fetching class constants with a dynamic name is supported only on PHP 8.3 and later
1576+
if (PHP_VERSION_ID < 80300) {
1577+
$this->markTestSkipped('Test requires PHP 8.3.');
1578+
}
1579+
15751580
$errors = $this->runAnalyse(__DIR__ . '/data/bug-12949.php');
15761581
$this->assertCount(3, $errors);
15771582
$this->assertSame('Call to an undefined method object::0().', $errors[0]->getMessage());

0 commit comments

Comments
 (0)