From 87c5053f3a6fb564d0f5209f354369b1d0a045bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Radek=20Dost=C3=A1l?= Date: Tue, 7 Mar 2017 10:56:44 +0100 Subject: [PATCH] Callback: workaround for Suhosin extension bug (#134) https://github.com/sektioneins/suhosin/issues/114 --- src/Utils/Callback.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }