Issue Task Closed

#94060Replace call_user_func[_array] with direct calls and variadics

Larry Garfield 05/04/21, 17:01 updated 09/07/21, 07:34

Description

Since PHP 5.6, the splat operator (aka variadics) has been able to do everything that call_user_func() and call_user_func_array() do. Being a language construct, though, it’s slightly faster as it skips a function call.

Let’s use it, because the code is usually clearer anyway, as well as a tiny bit faster.

Reviews 1