Skip to content

Commit 25e3a74

Browse files
authored
refactor: Replace PHP_VERSION by PHP_VERSION_ID
PHP_VERSION_ID is prefered at CodeIgniter4 repository.
1 parent e6052cf commit 25e3a74

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Autoloader/Autoloader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ public function sanitizeFilename(string $filename): string
346346
);
347347
}
348348
if ($result === false) {
349-
if (version_compare(PHP_VERSION, '8.0.0', '>=')) {
349+
if (PHP_VERSION_ID >= 80000) {
350350
$message = preg_last_error_msg();
351351
} else {
352352
$message = 'Regex error. error code: ' . preg_last_error();

0 commit comments

Comments
 (0)