Skip to content

Commit

Permalink
Merge pull request #819 from W0rma/fix-php-version-check
Browse files Browse the repository at this point in the history
Fix PHP version check
  • Loading branch information
spipu authored Jan 8, 2025
2 parents 5cd96a4 + ec8f9dd commit c9eccfd
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 c9eccfd

Please sign in to comment.