From ca6e0813ba291565942aba88176820d046f918ae Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sat, 1 Apr 2023 17:02:39 +0200 Subject: [PATCH] RouteDispatcher: Fixed string conversion --- src/Middleware/RouteDispatcher.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Middleware/RouteDispatcher.php b/src/Middleware/RouteDispatcher.php index 1f18c428..99568385 100644 --- a/src/Middleware/RouteDispatcher.php +++ b/src/Middleware/RouteDispatcher.php @@ -34,7 +34,7 @@ class RouteDispatcher implements MiddlewareInterface */ public function process(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface { - $path = (new Uri($request->getUri()))->getPath(); + $path = (new Uri((string) $request->getUri()))->getPath(); if ($request instanceof Request) { $path = $request->getPathInfo(); }