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
Branches
Tags
No related merge requests found
...@@ -95,7 +95,7 @@ class Signal { ...@@ -95,7 +95,7 @@ class Signal {
continue; continue;
elseif ($check && !call_user_func_array($check, array($object, $data))) elseif ($check && !call_user_func_array($check, array($object, $data)))
continue; 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.
Please register or to comment