Skip to content

Commit 81cd1ba

Browse files
committed
Modernize ClassReflectionPropertyHooksTest
1 parent 6851343 commit 81cd1ba

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

tests/PHPStan/Reflection/ClassReflectionPropertyHooksTest.php

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,33 +2,19 @@
22

33
namespace PHPStan\Reflection;
44

5-
use Override;
65
use PHPStan\Testing\PHPStanTestCase;
76
use PHPStan\Type\Generic\GenericObjectType;
87
use PHPStan\Type\IntegerType;
98
use PHPStan\Type\VerbosityLevel;
9+
use PHPUnit\Framework\Attributes\RequiresPhp;
1010
use function count;
11-
use const PHP_VERSION_ID;
1211

12+
#[RequiresPhp('>= 8.4')]
1313
class ClassReflectionPropertyHooksTest extends PHPStanTestCase
1414
{
1515

16-
#[Override]
17-
protected function setUp(): void
18-
{
19-
if (PHP_VERSION_ID >= 80400) {
20-
return;
21-
}
22-
23-
self::markTestSkipped('Test requires PHP 8.4');
24-
}
25-
2616
public static function dataPropertyHooks(): iterable
2717
{
28-
if (PHP_VERSION_ID < 80100) {
29-
return [];
30-
}
31-
3218
$reflectionProvider = self::createReflectionProvider();
3319

3420
yield [

0 commit comments

Comments
 (0)