diff --git a/schedule/parse.php b/schedule/parse.php index 923f53e..1c37e00 100644 --- a/schedule/parse.php +++ b/schedule/parse.php @@ -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;