Skip to content
Snippets Groups Projects
Commit 18dbd60f authored by Nima Motamedi's avatar Nima Motamedi
Browse files

Pass data to the callabale by reference

When using call_user_func_array arguments should be passed by reference in order to allow callable receive them by reference (only defining callable to receive data by reference is not enough).
parent 69f801b4
No related branches found
No related tags found
No related merge requests found
......@@ -95,7 +95,7 @@ class Signal {
continue;
elseif ($check && !call_user_func_array($check, array($object, $data)))
continue;
call_user_func_array($callable, array($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