e.g.:
-call_user_func_array($callable, $arguments);
+$callable(...$arguments);
Just a note for whoever picks this up, this will break:
-call_user_func_array($this->callable, $arguments);
+$this->callable(...$arguments);
Here's a workaround:
-call_user_func_array($this->callable, $arguments);
+($this->callable)(...$arguments);
I would want the same for call_user_func() as well.
- call_user_func($callable, $a, $b, $c);
+ $callable($a, $b, $c);
FYI: I picked up this request.
fixed through merge of https://github.com/FriendsOfPHP/PHP-CS-Fixer/pull/4544
FYI: later named to rule regular_callable_call
Most helpful comment
I would want the same for
call_user_func()as well.