From: Mikael Nordfeldth Date: Sat, 14 Sep 2013 16:32:52 +0000 (+0200) Subject: Event::handle only takes array $args X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=482296561e2bfe491761107f32936f550294b650;p=quix0rs-gnu-social.git Event::handle only takes array $args This is because it calls call_user_func_array with that exact $args argument. --- diff --git a/lib/event.php b/lib/event.php index 41fb53ffe9..aa52fa361c 100644 --- a/lib/event.php +++ b/lib/event.php @@ -98,7 +98,7 @@ class Event { * on results of handlers. */ - public static function handle($name, $args=array()) { + public static function handle($name, array $args=array()) { $result = null; if (array_key_exists($name, Event::$_handlers)) { foreach (Event::$_handlers[$name] as $handler) {