Skip to content

Commit

Permalink
Callback: workaround for Suhosin extension bug (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
radekdostal authored and dg committed Mar 7, 2017
1 parent 053b3e1 commit 87c5053
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Utils/Callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down

0 comments on commit 87c5053

Please sign in to comment.