diff --git a/src/Utils/Callback.php b/src/Utils/Callback.php index 7cf6bda31..bb12ab720 100644 --- a/src/Utils/Callback.php +++ b/src/Utils/Callback.php @@ -95,7 +95,7 @@ public static function invokeSafe($function, array $args, $onError) }); try { - return $function(...$args); + return call_user_func_array($function, $args); } finally { restore_error_handler(); }