From 845f5c071e6f5adb38b51a83c60275031f08f0d6 Mon Sep 17 00:00:00 2001 From: "Mohammed Taha [BMT]" Date: Tue, 4 Jul 2023 20:11:53 +0200 Subject: [PATCH] update handle method in class Controller --- src/Controller.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controller.php b/src/Controller.php index 906b454..7aceaf6 100644 --- a/src/Controller.php +++ b/src/Controller.php @@ -146,9 +146,9 @@ public function getCallback(): callable|null * * @throws InvalidCallbackException If the callback is not set. * - * @return ResponseInterface The response. + * @return ResponseInterface|string The response returned from controller. */ - public function handle(): ResponseInterface + public function handle(): ResponseInterface|string { $this->args = array_merge($this->args, $this->request->getQueryParams());