From 593e1ee9bcd8ef4d5fa66ba654b9fd02cb6502fd Mon Sep 17 00:00:00 2001 From: n0nag0n Date: Fri, 19 Jan 2024 21:42:39 -0500 Subject: [PATCH] phpstan cleanup --- flight/net/Route.php | 2 +- flight/net/Router.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/flight/net/Route.php b/flight/net/Route.php index 5f45392..78b69a1 100644 --- a/flight/net/Route.php +++ b/flight/net/Route.php @@ -58,7 +58,7 @@ final class Route public string $alias = ''; /** - * @var array The middleware to be applied to the route + * @var array The middleware to be applied to the route */ public array $middleware = []; diff --git a/flight/net/Router.php b/flight/net/Router.php index b8dda2e..84a1ff1 100644 --- a/flight/net/Router.php +++ b/flight/net/Router.php @@ -45,7 +45,7 @@ class Router /** * Group Middleware * - * @var array + * @var array */ 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 $middlewares The middlewares to be applied to the group Ex: [ $middleware1, $middleware2 ] + * @param array $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 {