From 9964d87e1ed62f26c23b0b1698ca820511ce62ec Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Fri, 8 Nov 2024 22:42:06 +0100 Subject: [PATCH] Fix router path matching with a valid URI object. --- src/Router/Routes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Router/Routes.php b/src/Router/Routes.php index 9dda8b9..da0a191 100644 --- a/src/Router/Routes.php +++ b/src/Router/Routes.php @@ -74,6 +74,6 @@ abstract class Routes */ public function match(ServerRequestInterface $request): RouteMatch { - return $this->tree->match($this->splitUri($request->getUri()), $request); + return $this->tree->match($this->splitUri($request->getUri()->getPath()), $request); } }