Skip to content

Commit 216c8b1

Browse files
committed
Fix build
1 parent 2d6b2d1 commit 216c8b1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tests/PHPStan/Rules/Classes/ClassAttributesRuleTest.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace PHPStan\Rules\Classes;
44

5-
use PHPStan\Php\PhpVersion;
65
use PHPStan\Rules\AttributesCheck;
76
use PHPStan\Rules\ClassCaseSensitivityCheck;
87
use PHPStan\Rules\ClassForbiddenNameCheck;
@@ -15,7 +14,6 @@
1514
use PHPStan\Rules\RuleLevelHelper;
1615
use PHPStan\Testing\RuleTestCase;
1716
use PHPUnit\Framework\Attributes\RequiresPhp;
18-
use const PHP_VERSION_ID;
1917

2018
/**
2119
* @extends RuleTestCase<ClassAttributesRule>
@@ -187,6 +185,7 @@ public function testBug12281(): void
187185
]);
188186
}
189187

188+
#[RequiresPhp('>= 8.0')]
190189
public function testDeprecatedAttribute(): void
191190
{
192191
$this->analyse([__DIR__ . '/data/deprecated-attr-on-class.php'], [

0 commit comments

Comments
 (0)