diff --git a/tests/PHPStan/Rules/Arrays/NonexistentOffsetInArrayDimFetchRuleTest.php b/tests/PHPStan/Rules/Arrays/NonexistentOffsetInArrayDimFetchRuleTest.php index 4bec61f534..d074a66b73 100644 --- a/tests/PHPStan/Rules/Arrays/NonexistentOffsetInArrayDimFetchRuleTest.php +++ b/tests/PHPStan/Rules/Arrays/NonexistentOffsetInArrayDimFetchRuleTest.php @@ -905,8 +905,8 @@ public function testInternalClassesWithOverloadedOffsetAccess(): void public function testInternalClassesWithOverloadedOffsetAccess84(): void { - if (version_compare(PHP_VERSION, '8.4.0', '<')) { - $this->markTestSkipped('Test requires PHP version 8.4.'); + if (PHP_VERSION_ID < 80400) { + $this->markTestSkipped('Test requires PHP 8.1.'); } $this->analyse([__DIR__ . '/data/internal-classes-overload-offset-access-php84.php'], []); } @@ -918,8 +918,8 @@ public function testInternalClassesWithOverloadedOffsetAccessInvalid(): void public function testInternalClassesWithOverloadedOffsetAccessInvalid84(): void { - if (version_compare(PHP_VERSION, '8.4.0', '<')) { - $this->markTestSkipped('Test requires PHP version 8.4.'); + if (PHP_VERSION_ID < 80400) { + $this->markTestSkipped('Test requires PHP 8.1.'); } $this->analyse([__DIR__ . '/data/internal-classes-overload-offset-access-invalid-php84.php'], []); }