We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fcde1ca commit 6e327c2Copy full SHA for 6e327c2
tests/PHPStan/Analyser/AnalyserIntegrationTest.php
@@ -1572,6 +1572,11 @@ public function testBug12800(): void
1572
1573
public function testBug12949(): void
1574
{
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
+
1580
$errors = $this->runAnalyse(__DIR__ . '/data/bug-12949.php');
1581
$this->assertCount(3, $errors);
1582
$this->assertSame('Call to an undefined method object::0().', $errors[0]->getMessage());
0 commit comments