diff --git a/HttpServer/Route/Router.php b/HttpServer/Route/Router.php index f3fc4cde..53cfb25c 100644 --- a/HttpServer/Route/Router.php +++ b/HttpServer/Route/Router.php @@ -403,7 +403,6 @@ class Router extends HttpService implements RouterInterface * @param $method * @return Node|null * 查找指定路由 - * @throws RequestException */ public function tree_search(?array $explode, $method): ?Node { @@ -414,7 +413,7 @@ class Router extends HttpService implements RouterInterface while ($value = array_shift($explode)) { $node = $parent->findNode($value); if (!$node) { - throw new RequestException('