Skip to content

Commit 105b9fa

Browse files
committed
Fix build
1 parent c2c73c0 commit 105b9fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: tests/PHPStan/Rules/Generics/MethodSignatureVarianceRuleTest.php

+5
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<MethodSignatureVarianceRule>
@@ -236,6 +237,10 @@ public function testPr2465(): void
236237

237238
public function testBug10609(): void
238239
{
240+
if (PHP_VERSION_ID < 80000) {
241+
self::markTestSkipped('Test requires PHP 8.0.');
242+
}
243+
239244
$this->analyse([__DIR__ . '/data/bug-10609.php'], [
240245
[
241246
'Template type A is declared as covariant, but occurs in contravariant position in parameter fn of method Bug10609\Collection::tap().',

0 commit comments

Comments
 (0)