1717use RuntimeException ;
1818use Slim \Interfaces \RouteParserInterface as SlimRouteParserInterface ;
1919
20+ /**
21+ * Add fallback route to Slim's RouteParserInterface.
22+ */
2023interface RouteParserInterface extends SlimRouteParserInterface
2124{
2225 /**
2326 * Build the path for a named route excluding the base path.
2427 *
25- * @param string $routeName Route name
26- * @param array<string, string> $data Named argument replacement data
27- * @param array<string, string> $queryParams Optional query string parameters
28- * @param string|null $fallbackRoute Optional fallback route (the actual route, not the route name)
28+ * @param string $routeName Route name
29+ * @param array<string, string> $data Named argument replacement data
30+ * @param array<string, string | array<array-key, string> > $queryParams Optional query string parameters
31+ * @param string|null $fallbackRoute Optional fallback route (the actual route, not the route name)
2932 *
3033 * @throws RuntimeException If named route does not exist
3134 * @throws InvalidArgumentException If required data not provided
@@ -40,10 +43,10 @@ public function relativeUrlFor(
4043 /**
4144 * Build the path for a named route including the base path.
4245 *
43- * @param string $routeName Route name
44- * @param array<string, string> $data Named argument replacement data
45- * @param array<string, string> $queryParams Optional query string parameters
46- * @param string|null $fallbackRoute Optional fallback route (the actual route, not the route name)
46+ * @param string $routeName Route name
47+ * @param array<string, string> $data Named argument replacement data
48+ * @param array<string, string | array<array-key, string> > $queryParams Optional query string parameters
49+ * @param string|null $fallbackRoute Optional fallback route (the actual route, not the route name)
4750 *
4851 * @throws RuntimeException If named route does not exist
4952 * @throws InvalidArgumentException If required data not provided
@@ -58,11 +61,11 @@ public function urlFor(
5861 /**
5962 * Get fully qualified URL for named route.
6063 *
61- * @param UriInterface $uri
62- * @param string $routeName Route name
63- * @param array<string, string> $data Named argument replacement data
64- * @param array<string, string> $queryParams Optional query string parameters
65- * @param string|null $fallbackRoute Optional fallback route (the actual route, not the route name)
64+ * @param UriInterface $uri
65+ * @param string $routeName Route name
66+ * @param array<string, string> $data Named argument replacement data
67+ * @param array<string, string | array<array-key, string> > $queryParams Optional query string parameters
68+ * @param string|null $fallbackRoute Optional fallback route (the actual route, not the route name)
6669 */
6770 public function fullUrlFor (
6871 UriInterface $ uri ,
0 commit comments