diff --git a/system/Router/AutoRouterImproved.php b/system/Router/AutoRouterImproved.php index b8c1e9d35099..a186fd33ef55 100644 --- a/system/Router/AutoRouterImproved.php +++ b/system/Router/AutoRouterImproved.php @@ -46,6 +46,8 @@ final class AutoRouterImproved implements AutoRouterInterface /** * An array of params to the controller method. + * + * @phpstan-var list */ private array $params = []; @@ -72,6 +74,8 @@ final class AutoRouterImproved implements AutoRouterInterface /** * The URI segments. + * + * @phpstan-var list */ private array $segments = []; @@ -279,6 +283,7 @@ public function getRoute(string $uri, string $httpVerb): array } // The first item may be a method name. + /** @phpstan-var list $params */ $params = $this->params; $methodParam = array_shift($params);