Skip to content

Commit 7f90fec

Browse files
committed
Fix build
1 parent 7dc98b6 commit 7f90fec

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/PHPStan/Rules/PhpDoc/MethodConditionalReturnTypeRuleTest.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
use PHPStan\Rules\Rule;
66
use PHPStan\Testing\RuleTestCase;
7+
use const PHP_VERSION_ID;
78

89
/**
910
* @extends RuleTestCase<MethodConditionalReturnTypeRule>
@@ -97,6 +98,10 @@ public function testBug7310(): void
9798

9899
public function testBug11939(): void
99100
{
101+
if (PHP_VERSION_ID < 80100) {
102+
$this->markTestSkipped('Test requires PHP 8.1.');
103+
}
104+
100105
$this->analyse([__DIR__ . '/data/bug-11939.php'], []);
101106
}
102107

0 commit comments

Comments
 (0)