Skip to content

Commit

Permalink
use PHP_VERSION_ID instead
Browse files Browse the repository at this point in the history
  • Loading branch information
Girgias committed Dec 14, 2024
1 parent 7c60acf commit 44d39ff
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'], []);
}
Expand All @@ -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'], []);
}
Expand Down

0 comments on commit 44d39ff

Please sign in to comment.