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
We have various methods where argument overloading is used for ease of use. For e.g. for RouteBuilder::scope() if the 2nd argument is a callback it's used as the 3rd argument.
The availability of named arguments and autocompleting features of today's IDEs negate the need of such loading. Removing the overloading would make the API cleaner.
Description
We have various methods where argument overloading is used for ease of use. For e.g. for
RouteBuilder::scope()
if the 2nd argument is a callback it's used as the 3rd argument.The availability of named arguments and autocompleting features of today's IDEs negate the need of such loading. Removing the overloading would make the API cleaner.
Functions list
RouteBuilder::scope(string $path, Closure|array $params, ?Closure $callback = null)
RouteBuilder::resources(string $name, Closure|array $options = [], ?Closure $callback = null)
RouteBuilder::prefix(string $name, Closure|array $params = [], ?Closure $callback = null)
RouteBuilder::plugin(string $name, Closure|array $params = [], ?Closure $callback = null)
CakePHP Version
6.0
The text was updated successfully, but these errors were encountered: