Replace an arrow function with an anonymous one

This commit is contained in:
Vencislav Atanasov 2023-10-17 00:20:21 +03:00
parent 0284c3f460
commit 8ad92a5fa3
1 changed files with 5 additions and 1 deletions

View File

@ -5,7 +5,11 @@ if ($strftimeDeprecated) {
require 'php-8.1-strftime.php'; require 'php-8.1-strftime.php';
} }
$strftime = fn(...$args) => $strftimeDeprecated ? PHP81_BC\strftime(...$args) : \strftime(...$args); $strftime = function (...$args) {
global $strftimeDeprecated;
return $strftimeDeprecated ? PHP81_BC\strftime(...$args) : \strftime(...$args);
};
function parseData($config, $data) { function parseData($config, $data) {
global $strftime; global $strftime;