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:
parent
1775fce500
commit
482296561e
|
@ -98,7 +98,7 @@ class Event {
|
||||||
* on results of handlers.
|
* on results of handlers.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public static function handle($name, $args=array()) {
|
public static function handle($name, array $args=array()) {
|
||||||
$result = null;
|
$result = null;
|
||||||
if (array_key_exists($name, Event::$_handlers)) {
|
if (array_key_exists($name, Event::$_handlers)) {
|
||||||
foreach (Event::$_handlers[$name] as $handler) {
|
foreach (Event::$_handlers[$name] as $handler) {
|
||||||
|
|
Loading…
Reference in New Issue