-
-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Milestone
Description
What happened?
Mixing types of parameters will lead to a fatal error.
We should either:
- Enforce check if parameter has numeric keys and
$refAliasis an integer, - Enforce parameters to have only string keys and
$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?
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 unpackingMetadata
Metadata
Assignees
Labels
No labels