From 8ad92a5fa3d084f8b276f08a667ae623866ad8eb Mon Sep 17 00:00:00 2001 From: Vencislav Atanasov Date: Tue, 17 Oct 2023 00:20:21 +0300 Subject: [PATCH] Replace an arrow function with an anonymous one --- schedule/parse.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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;