Skip to content

Commit 44d39ff

Browse files
committed
use PHP_VERSION_ID instead
1 parent 7c60acf commit 44d39ff

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/PHPStan/Rules/Arrays/NonexistentOffsetInArrayDimFetchRuleTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -905,8 +905,8 @@ public function testInternalClassesWithOverloadedOffsetAccess(): void
905905

906906
public function testInternalClassesWithOverloadedOffsetAccess84(): void
907907
{
908-
if (version_compare(PHP_VERSION, '8.4.0', '<')) {
909-
$this->markTestSkipped('Test requires PHP version 8.4.');
908+
if (PHP_VERSION_ID < 80400) {
909+
$this->markTestSkipped('Test requires PHP 8.1.');
910910
}
911911
$this->analyse([__DIR__ . '/data/internal-classes-overload-offset-access-php84.php'], []);
912912
}
@@ -918,8 +918,8 @@ public function testInternalClassesWithOverloadedOffsetAccessInvalid(): void
918918

919919
public function testInternalClassesWithOverloadedOffsetAccessInvalid84(): void
920920
{
921-
if (version_compare(PHP_VERSION, '8.4.0', '<')) {
922-
$this->markTestSkipped('Test requires PHP version 8.4.');
921+
if (PHP_VERSION_ID < 80400) {
922+
$this->markTestSkipped('Test requires PHP 8.1.');
923923
}
924924
$this->analyse([__DIR__ . '/data/internal-classes-overload-offset-access-invalid-php84.php'], []);
925925
}

0 commit comments

Comments
 (0)