]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Event::handle only takes array $args
authorMikael Nordfeldth <mmn@hethane.se>
Sat, 14 Sep 2013 16:32:52 +0000 (18:32 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sat, 14 Sep 2013 16:32:52 +0000 (18:32 +0200)
This is because it calls call_user_func_array with that exact $args argument.

lib/event.php

index 41fb53ffe9afe91312c3d2fa4799bede44ea6091..aa52fa361ca570f5605690fdbd0a3712387a719c 100644 (file)
@@ -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) {