We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 48229656 authored by mattl's avatar mattl

Event::handle only takes array $args

This is because it calls call_user_func_array with that exact $args argument.
parent 1775fce5
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment