Skip to content

Commit 7d60f5c

Browse files
committed
Merge branch 'master' into 3.2-merge
2 parents 5fab53b + 96a1d80 commit 7d60f5c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/Router/RouteCollector.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function addGroup(string $prefix, callable $callback, array $options = []
7474
* Adds a GET route to the collection.
7575
*
7676
* This is simply an alias of $this->addRoute('GET', $route, $handler)
77-
* @param array|string $handler
77+
* @param null|array|callable|string $handler
7878
*/
7979
public function get(string $route, mixed $handler, array $options = []): void
8080
{
@@ -85,7 +85,7 @@ public function get(string $route, mixed $handler, array $options = []): void
8585
* Adds a POST route to the collection.
8686
*
8787
* This is simply an alias of $this->addRoute('POST', $route, $handler)
88-
* @param array|string $handler
88+
* @param null|array|callable|string $handler
8989
*/
9090
public function post(string $route, mixed $handler, array $options = []): void
9191
{
@@ -96,7 +96,7 @@ public function post(string $route, mixed $handler, array $options = []): void
9696
* Adds a PUT route to the collection.
9797
*
9898
* This is simply an alias of $this->addRoute('PUT', $route, $handler)
99-
* @param array|string $handler
99+
* @param null|array|callable|string $handler
100100
*/
101101
public function put(string $route, mixed $handler, array $options = []): void
102102
{
@@ -107,7 +107,7 @@ public function put(string $route, mixed $handler, array $options = []): void
107107
* Adds a DELETE route to the collection.
108108
*
109109
* This is simply an alias of $this->addRoute('DELETE', $route, $handler)
110-
* @param array|string $handler
110+
* @param null|array|callable|string $handler
111111
*/
112112
public function delete(string $route, mixed $handler, array $options = []): void
113113
{
@@ -118,7 +118,7 @@ public function delete(string $route, mixed $handler, array $options = []): void
118118
* Adds a PATCH route to the collection.
119119
*
120120
* This is simply an alias of $this->addRoute('PATCH', $route, $handler)
121-
* @param array|string $handler
121+
* @param null|array|callable|string $handler
122122
*/
123123
public function patch(string $route, mixed $handler, array $options = []): void
124124
{
@@ -129,7 +129,7 @@ public function patch(string $route, mixed $handler, array $options = []): void
129129
* Adds a HEAD route to the collection.
130130
*
131131
* This is simply an alias of $this->addRoute('HEAD', $route, $handler)
132-
* @param array|string $handler
132+
* @param null|array|callable|string $handler
133133
*/
134134
public function head(string $route, mixed $handler, array $options = []): void
135135
{

0 commit comments

Comments
 (0)