diff --git a/system/Router/RouteCollection.php b/system/Router/RouteCollection.php index 30be78a2bce5..b07f6cb83f54 100644 --- a/system/Router/RouteCollection.php +++ b/system/Router/RouteCollection.php @@ -527,6 +527,8 @@ public function getRoutes(?string $verb = null): array /** * Returns one or all routes options + * + * @return array [key => value] */ public function getRoutesOptions(?string $from = null, ?string $verb = null): array { @@ -1149,6 +1151,11 @@ public function getFilterForRoute(string $search, ?string $verb = null): string * 'role:admin,manager' * * has a filter of "role", with parameters of ['admin', 'manager']. + * + * @param string $search routeKey + * + * @return array filter_name or filter_name:arguments like 'role:admin,manager' + * @phpstan-return list */ public function getFiltersForRoute(string $search, ?string $verb = null): array { @@ -1520,6 +1527,15 @@ public function resetRoutes() /** * Load routes options based on verb + * + * @return array> [routeKey(or from) => [key => value]] + * @phpstan-return array< + * string, + * array{ + * filter?: string|list, namespace?: string, hostname?: string, + * subdomain?: string, offset?: int, priority?: int + * } + * > */ protected function loadRoutesOptions(?string $verb = null): array {