Skip to content
Snippets Groups Projects
Commit b64865dc authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #1037 from greezybacon/issue/signal-byref

signals: pass variable by reference

Reviewed-By: Peter & Jared
parents 23dfcaeb d79282bf
No related branches found
No related tags found
No related merge requests found
......@@ -93,9 +93,9 @@ class Signal {
list($s, $callable, $check) = $sub;
if ($s && !is_a($object, $s))
continue;
elseif ($check && !call_user_func($check, $object, $data))
elseif ($check && !call_user_func_array($check, array($object, $data)))
continue;
call_user_func($callable, $object, $data);
call_user_func_array($callable, array($object, $data));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment