phpstan cleanup

pull/524/head
n0nag0n 1 year ago
parent 83d33348e0
commit 593e1ee9bc

@ -58,7 +58,7 @@ final class Route
public string $alias = '';
/**
* @var array<callable> The middleware to be applied to the route
* @var array<int,callable|object> The middleware to be applied to the route
*/
public array $middleware = [];

@ -45,7 +45,7 @@ class Router
/**
* Group Middleware
*
* @var array
* @var array<int,mixed>
*/
protected array $group_middlewares = [];
@ -169,7 +169,7 @@ class Router
*
* @param string $group_prefix group URL prefix (such as /api/v1)
* @param callable $callback The necessary calling that holds the Router class
* @param array<int,mixed> $middlewares The middlewares to be applied to the group Ex: [ $middleware1, $middleware2 ]
* @param array<int,callable|object> $group_middlewares The middlewares to be applied to the group Ex: [ $middleware1, $middleware2 ]
* @return void
*/
public function group(string $group_prefix, callable $callback, array $group_middlewares = []): void {

Loading…
Cancel
Save