Event::handle only takes array $args

This is because it calls call_user_func_array with that exact $args argument.
This commit is contained in:
Mikael Nordfeldth 2013-09-14 18:32:52 +02:00
parent 1775fce500
commit 482296561e

View 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) {