Open matzeeable opened 8 months ago
Use sprintf() with spread operator instead of call_user_func_array().
sprintf()
call_user_func_array()
When using https://github.com/humbug/php-scoper it modifies the following code:
return call_user_func_array('sprintf', $arguments);
to:
return \call_user_func_array('PhpScoper\\Vendor\\sprintf', $arguments);
This leads to an PHP fatal error as the PhpScoper\Vendor\sprintf function is not available.
PhpScoper\Vendor\sprintf
I think it's a good change. Nonetheless, this specific change was caused by a bug which is fixed in https://github.com/humbug/php-scoper/pull/1028.
Describe your change
Use
sprintf()
with spread operator instead ofcall_user_func_array()
.What problem is this fixing?
When using https://github.com/humbug/php-scoper it modifies the following code:
to:
This leads to an PHP fatal error as the
PhpScoper\Vendor\sprintf
function is not available.