Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/Router/RouteCollector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand All @@ -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
{
Expand Down