Skip to content

Commit fe2d217

Browse files
committed
Enum test to run only on php 8.1+
1 parent 870927a commit fe2d217

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/PHPStan/Analyser/AnalyserIntegrationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1483,6 +1483,10 @@ public function testBug11913(): void
14831483

14841484
public function testBug12083InArrayEnum(): void
14851485
{
1486+
if (PHP_VERSION_ID >= 80100) {
1487+
$this->markTestSkipped('Test requires PHP version >= 8.1');
1488+
}
1489+
14861490
$errors = $this->runAnalyse(__DIR__ . '/data/enum-in-array.php');
14871491

14881492
$filteredErrors = array_filter($errors, static fn (Error $error): bool => $error->getIdentifier() !== 'function.alreadyNarrowedType'

0 commit comments

Comments
 (0)