From 2d8abf30a9d714a32001e04dd19ebf38b8ff04ff Mon Sep 17 00:00:00 2001 From: foremtehan <53290883+foremtehan@users.noreply.github.com> Date: Sun, 27 Apr 2025 20:28:17 +0330 Subject: [PATCH] Update RouteCollector.php --- src/Router/RouteCollector.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Router/RouteCollector.php b/src/Router/RouteCollector.php index f35041f..b1c3532 100644 --- a/src/Router/RouteCollector.php +++ b/src/Router/RouteCollector.php @@ -74,7 +74,7 @@ public function addGroup(string $prefix, callable $callback, array $options = [] * Adds a GET route to the collection. * * This is simply an alias of $this->addRoute('GET', $route, $handler) - * @param array|string $handler + * @param array|callable|null|string $handler */ public function get(string $route, mixed $handler, array $options = []): void { @@ -85,7 +85,7 @@ public function get(string $route, mixed $handler, array $options = []): void * Adds a POST route to the collection. * * This is simply an alias of $this->addRoute('POST', $route, $handler) - * @param array|string $handler + * @param array|callable|null|string $handler */ public function post(string $route, mixed $handler, array $options = []): void { @@ -96,7 +96,7 @@ public function post(string $route, mixed $handler, array $options = []): void * Adds a PUT route to the collection. * * This is simply an alias of $this->addRoute('PUT', $route, $handler) - * @param array|string $handler + * @param array|callable|null|string $handler */ public function put(string $route, mixed $handler, array $options = []): void { @@ -107,7 +107,7 @@ public function put(string $route, mixed $handler, array $options = []): void * Adds a DELETE route to the collection. * * This is simply an alias of $this->addRoute('DELETE', $route, $handler) - * @param array|string $handler + * @param array|callable|null|string $handler */ public function delete(string $route, mixed $handler, array $options = []): void { @@ -118,7 +118,7 @@ public function delete(string $route, mixed $handler, array $options = []): void * Adds a PATCH route to the collection. * * This is simply an alias of $this->addRoute('PATCH', $route, $handler) - * @param array|string $handler + * @param array|callable|null|string $handler */ public function patch(string $route, mixed $handler, array $options = []): void { @@ -129,7 +129,7 @@ public function patch(string $route, mixed $handler, array $options = []): void * Adds a HEAD route to the collection. * * This is simply an alias of $this->addRoute('HEAD', $route, $handler) - * @param array|string $handler + * @param array|callable|null|string $handler */ public function head(string $route, mixed $handler, array $options = []): void {