@@ -45,65 +45,65 @@ public function setBasePath(string $basePath): RouteCollectorProxyInterface;
4545 /**
4646 * Add GET route
4747 *
48- * @param string $pattern The route URI pattern
49- * @param callable|string $callable The route callback routine
48+ * @param string $pattern The route URI pattern
49+ * @param callable|array{class-string, string} |string $callable The route callback routine
5050 */
5151 public function get (string $ pattern , $ callable ): RouteInterface ;
5252
5353 /**
5454 * Add POST route
5555 *
56- * @param string $pattern The route URI pattern
57- * @param callable|string $callable The route callback routine
56+ * @param string $pattern The route URI pattern
57+ * @param callable|array{class-string, string} |string $callable The route callback routine
5858 */
5959 public function post (string $ pattern , $ callable ): RouteInterface ;
6060
6161 /**
6262 * Add PUT route
6363 *
64- * @param string $pattern The route URI pattern
65- * @param callable|string $callable The route callback routine
64+ * @param string $pattern The route URI pattern
65+ * @param callable|array{class-string, string} |string $callable The route callback routine
6666 */
6767 public function put (string $ pattern , $ callable ): RouteInterface ;
6868
6969 /**
7070 * Add PATCH route
7171 *
72- * @param string $pattern The route URI pattern
73- * @param callable|string $callable The route callback routine
72+ * @param string $pattern The route URI pattern
73+ * @param callable|array{class-string, string} |string $callable The route callback routine
7474 */
7575 public function patch (string $ pattern , $ callable ): RouteInterface ;
7676
7777 /**
7878 * Add DELETE route
7979 *
80- * @param string $pattern The route URI pattern
81- * @param callable|string $callable The route callback routine
80+ * @param string $pattern The route URI pattern
81+ * @param callable|array{class-string, string} |string $callable The route callback routine
8282 */
8383 public function delete (string $ pattern , $ callable ): RouteInterface ;
8484
8585 /**
8686 * Add OPTIONS route
8787 *
88- * @param string $pattern The route URI pattern
89- * @param callable|string $callable The route callback routine
88+ * @param string $pattern The route URI pattern
89+ * @param callable|array{class-string, string} |string $callable The route callback routine
9090 */
9191 public function options (string $ pattern , $ callable ): RouteInterface ;
9292
9393 /**
9494 * Add route for any HTTP method
9595 *
96- * @param string $pattern The route URI pattern
97- * @param callable|string $callable The route callback routine
96+ * @param string $pattern The route URI pattern
97+ * @param callable|array{class-string, string} |string $callable The route callback routine
9898 */
9999 public function any (string $ pattern , $ callable ): RouteInterface ;
100100
101101 /**
102102 * Add route with multiple methods
103103 *
104- * @param string[] $methods Numeric array of HTTP method names
105- * @param string $pattern The route URI pattern
106- * @param callable|string $callable The route callback routine
104+ * @param string[] $methods Numeric array of HTTP method names
105+ * @param string $pattern The route URI pattern
106+ * @param callable|array{class-string, string} |string $callable The route callback routine
107107 */
108108 public function map (array $ methods , string $ pattern , $ callable ): RouteInterface ;
109109
0 commit comments