Skip to content

Commit

Permalink
Fix PHP version check
Browse files Browse the repository at this point in the history
  • Loading branch information
W0rma authored Dec 5, 2024
1 parent 5cd96a4 commit ec8f9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public static function load($code)
self::$list = array();
$handle = fopen($file, 'r');
while (!feof($handle)) {
if (PHP_VERSION >= 80400) {
if (PHP_VERSION_ID >= 80400) {
// As of PHP 8.4.0, depending on the default value of escape is deprecated.
$line = fgetcsv($handle, null, ',', '"', '\\');
} else {
Expand Down

0 comments on commit ec8f9dd

Please sign in to comment.