Skip to content

Commit 4b6d964

Browse files
herndlmondrejmirtes
authored andcommitted
also run issetruletest only with PHP >= 8.1
1 parent 9a2eb59 commit 4b6d964

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PHPStan/Rules/Variables/IssetRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,8 +415,13 @@ public function testBug6997(): void
415415

416416
public function testBug7776(): void
417417
{
418+
if (PHP_VERSION_ID < 80100) {
419+
$this->markTestSkipped('Test requires PHP 8.1.');
420+
}
421+
418422
$this->treatPhpDocTypesAsCertain = true;
419423
$this->strictUnnecessaryNullsafePropertyFetch = false;
424+
420425
$this->analyse([__DIR__ . '/../../Analyser/data/bug-7776.php'], []);
421426
}
422427

0 commit comments

Comments
 (0)