From 482296561e2bfe491761107f32936f550294b650 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sat, 14 Sep 2013 18:32:52 +0200 Subject: [PATCH] Event::handle only takes array $args This is because it calls call_user_func_array with that exact $args argument. --- lib/event.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {