diff --git a/README.md b/README.md index 6478109..58df691 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Documentation is available at: https://docs.dotkernel.org/dot-router/. ## Badges ![OSS Lifecycle](https://img.shields.io/osslifecycle/dotkernel/dot-router) -![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-router/1.0.2) +![PHP from Packagist (specify version)](https://img.shields.io/packagist/php-v/dotkernel/dot-router/1.0.3) [![GitHub issues](https://img.shields.io/github/issues/dotkernel/dot-router)](https://github.com/dotkernel/dot-router/issues) [![GitHub forks](https://img.shields.io/github/forks/dotkernel/dot-router)](https://github.com/dotkernel/dot-router/network) diff --git a/src/RouteCollectorInterface.php b/src/RouteCollectorInterface.php index 3df2e3d..e863f11 100644 --- a/src/RouteCollectorInterface.php +++ b/src/RouteCollectorInterface.php @@ -12,7 +12,7 @@ interface RouteCollectorInterface { public function group( string $prefix, - string|array|callable|MiddlewareInterface|RequestHandlerInterface $middleware, + null|string|array|callable|MiddlewareInterface|RequestHandlerInterface $middleware = null, ): RouteGroupCollectorInterface; public function route(