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
It is probably very useful to know that argument unpacking works with named arguments. I also missed anything on the fact that you cannot use argument unpacking after named arguments, that is not mentioned even in the rfc seciton.
The variadic function parameter token/operator is not quite the same thing, but should also be mentioned here, I think.
The text was updated successfully, but these errors were encountered:
From manual page: https://php.net/language.operators
I noticed that there is not a lot of information on the spread operator and the variadic argument token/operator in the operator section .
There is more information on array unpacking on the data type, array page: https://www.php.net/manual/en/language.types.array.php#language.types.array.unpacking, but almost nothing on argument unpacking in the function section: https://www.php.net/manual/en/functions.arguments.php#functions.named-arguments
I think it would make sense to add the spread operator in the operator section with information on array and argument unpacking, which can currently only be found in the rfc section:
It is probably very useful to know that argument unpacking works with named arguments. I also missed anything on the fact that you cannot use argument unpacking after named arguments, that is not mentioned even in the rfc seciton.
The variadic function parameter token/operator is not quite the same thing, but should also be mentioned here, I think.
The text was updated successfully, but these errors were encountered: