Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 105b9fa

Browse files
Fix build
1 parent c2c73c0 commit 105b9fa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎tests/PHPStan/Rules/Generics/MethodSignatureVarianceRuleTest.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<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)

AltStyle によって変換されたページ (->オリジナル) /