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
I think that we can take advantage of the ... syntax
Justification
Considering the documentation, they encourage us to avoid this technique:
Note: It is also possible to achieve variable-length arguments by using func_num_args(), func_get_arg(), and func_get_args() functions. This technique is not recommended as it was used prior to the introduction of the ... token.
Suggestion
I think that we can take advantage of the
...
syntaxJustification
Considering the documentation, they encourage us to avoid this technique:
Afected files:
Tree/src/Builder/NodeBuilder.php
Line 55 in 8387cc4
Tree/src/Builder/NodeBuilderInterface.php
Line 46 in 8387cc4
Is it a breaking change?
No, the users of this package could use
NodeBuilder::leafs()
as they are used to.🌺
The text was updated successfully, but these errors were encountered: