Skip to content

Commit b535392

Browse files
committed
Fix
1 parent 9ab4e6f commit b535392

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests/PHPStan/Rules/PhpDoc/InvalidPhpDocVarTagTypeRuleTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
use PHPStan\Rules\Rule;
99
use PHPStan\Testing\RuleTestCase;
1010
use PHPStan\Type\FileTypeMapper;
11+
use const PHP_VERSION_ID;
1112

1213
/**
1314
* @extends RuleTestCase<InvalidPhpDocVarTagTypeRule>
@@ -139,6 +140,9 @@ public function testBug4486Namespace(): void
139140

140141
public function testBug6252(): void
141142
{
143+
if (PHP_VERSION_ID < 80000) {
144+
$this->markTestSkipped('Test requires PHP 8.0.');
145+
}
142146
$this->analyse([__DIR__ . '/data/bug-6252.php'], []);
143147
}
144148

0 commit comments

Comments
 (0)