Advertisement
Guest User

Untitled

a guest
Apr 16th, 2015
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1.  
  2. $actionArguments = array();
  3. array_walk($router->currentRoute->getParams(), function ($value, $key) use (&$actionArguments) {
  4.     $actionArguments[sprintf(':%s', $key)] = $value;
  5. });
  6.  
  7. // Throws error: "Only variables should be passed by reference" Line - array_walk(...
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement