Skip to content

Commit 27f806d

Browse files
committed
use PHPUnit attributes
1 parent 70f50e7 commit 27f806d

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

tests/PHPStan/Rules/Properties/TypesAssignedToPropertiesRuleTest.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
use PHPStan\Rules\RuleLevelHelper;
77
use PHPStan\Testing\RuleTestCase;
88
use PHPUnit\Framework\Attributes\RequiresPhp;
9+
use const PHP_VERSION_ID;
910

1011
/**
1112
* @extends RuleTestCase<TypesAssignedToPropertiesRule>
@@ -806,12 +807,9 @@ public function testBug11171(): void
806807
$this->analyse([__DIR__ . '/data/bug-11171.php'], []);
807808
}
808809

810+
#[RequiresPhp('>= 8.0')]
809811
public function testBug8282(): void
810812
{
811-
if (PHP_VERSION_ID < 80000) {
812-
$this->markTestSkipped('Test requires PHP 8.0.');
813-
}
814-
815813
$this->checkExplicitMixed = true;
816814
$this->analyse([__DIR__ . '/data/bug-8282.php'], []);
817815
}

tests/PHPStan/Rules/Variables/ParameterOutAssignedTypeRuleTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
use PHPStan\Rules\RuleLevelHelper;
77
use PHPStan\Testing\RuleTestCase;
88
use PHPUnit\Framework\Attributes\RequiresPhp;
9-
use const PHP_VERSION_ID;
109

1110
/**
1211
* @extends RuleTestCase<ParameterOutAssignedTypeRule>

0 commit comments

Comments
 (0)