Replace an arrow function with an anonymous one
This commit is contained in:
parent
0284c3f460
commit
8ad92a5fa3
|
@ -5,7 +5,11 @@ if ($strftimeDeprecated) {
|
|||
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) {
|
||||
global $strftime;
|
||||
|
|
Loading…
Reference in New Issue