From 3ef1914c1068d26f2a31a9a1add438c3e87d0746 Mon Sep 17 00:00:00 2001 From: alexmerlin Date: Thu, 20 Mar 2025 17:10:42 +0200 Subject: [PATCH 1/2] Issue #5: RouteCollector::group(): is now be optional Signed-off-by: alexmerlin --- src/RouteCollectorInterface.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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( From 70fd3d8e4844378d6a1331958ba964915a7ce578 Mon Sep 17 00:00:00 2001 From: alexmerlin Date: Thu, 20 Mar 2025 17:11:30 +0200 Subject: [PATCH 2/2] Updated README.md Signed-off-by: alexmerlin --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)