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 7dc98b6 commit 7f90fecCopy full SHA for 7f90fec
tests/PHPStan/Rules/PhpDoc/MethodConditionalReturnTypeRuleTest.php
@@ -4,6 +4,7 @@
4
5
use PHPStan\Rules\Rule;
6
use PHPStan\Testing\RuleTestCase;
7
+use const PHP_VERSION_ID;
8
9
/**
10
* @extends RuleTestCase<MethodConditionalReturnTypeRule>
@@ -97,6 +98,10 @@ public function testBug7310(): void
97
98
99
public function testBug11939(): void
100
{
101
+ if (PHP_VERSION_ID < 80100) {
102
+ $this->markTestSkipped('Test requires PHP 8.1.');
103
+ }
104
+
105
$this->analyse([__DIR__ . '/data/bug-11939.php'], []);
106
}
107
0 commit comments