Skip to content

Commit 70f50e7

Browse files
committed
Update ParameterOutAssignedTypeRuleTest.php
1 parent b2d24b0 commit 70f50e7

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/PHPStan/Rules/Variables/ParameterOutAssignedTypeRuleTest.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use PHPStan\Rules\Rule as TRule;
66
use PHPStan\Rules\RuleLevelHelper;
77
use PHPStan\Testing\RuleTestCase;
8+
use PHPUnit\Framework\Attributes\RequiresPhp;
89
use const PHP_VERSION_ID;
910

1011
/**
@@ -75,11 +76,9 @@ public function testBug13093b(): void
7576
$this->analyse([__DIR__ . '/data/bug-13093b.php'], []);
7677
}
7778

79+
#[RequiresPhp('>= 8.0')]
7880
public function testBug12754(): void
7981
{
80-
if (PHP_VERSION_ID < 80000) {
81-
$this->markTestSkipped('PHP 8.0+ is required for this test.');
82-
}
8382
$this->analyse([__DIR__ . '/data/bug-12754.php'], []);
8483
}
8584

0 commit comments

Comments
 (0)