What happened?
Mixing types of parameters will lead to a fatal error.
We should either:
- Enforce check if parameter has numeric keys and
$refAlias is an integer,
- Enforce parameters to have only string keys and
$refAlias to be a string,
Option 1 still has a problem from the second point, where the order of parameters will not match the function definition, either leading to invalid results or to deprecation warnings.
How to reproduce?
call('implode', ['separator' => ',']) // fatal
call('implode', [',']) // possible deprecation (wrong parameters order)
Data required to reproduce bug locally
No response
Version
0.27
Relevant error output
In CallUserFunc.php line 50:
Cannot use positional argument after named argument during unpacking
What happened?
Mixing types of parameters will lead to a fatal error.
We should either:
$refAliasis an integer,$refAliasto be a string,Option 1 still has a problem from the second point, where the order of parameters will not match the function definition, either leading to invalid results or to deprecation warnings.
How to reproduce?
Data required to reproduce bug locally
No response
Version
0.27
Relevant error output
In CallUserFunc.php line 50: Cannot use positional argument after named argument during unpacking