Closed shadowhand closed 5 years ago
The middlewares() method currently takes an array of middleware but there is no type enforcement.
middlewares()
This method could be improved by using a variadic method definition:
public function middlewares(MiddlewareInterface ...$middlewares)
When combined with argument unpacking, it makes it easy to pass an array:
$aware->middlewares(...$arrayOfMiddleware);
This can only be implemented in the next major version.
See #186 relating to this.
The
middlewares()
method currently takes an array of middleware but there is no type enforcement.This method could be improved by using a variadic method definition:
When combined with argument unpacking, it makes it easy to pass an array:
This can only be implemented in the next major version.