You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: call() can lead to PHP fatal error when arguments are mixed #2014
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.
Activity
norberttech commentedon Nov 18, 2025
The original intention of allowing for
intwas to be able to pass arguments by name or position.So for example:
['param_name_1' => 'param_value_1', 'param_name_2' => 'param_value_2']['param_value_1', 'param_value_2']And ideally I would like to keep it this way.
However to be able to use it with positional parameter you need to do something lke this:
So array merge would replace
[1 => null]with[1 => ref('column')->eval()](this wasn't properly documented)