From 79dc0403d402b30ee1965700eea00261eb2a7786 Mon Sep 17 00:00:00 2001 From: Black Maize God Date: Thu, 29 Jun 2023 11:28:29 +0300 Subject: [PATCH] Resolves #52: URI Parser. - Changed return value from null to empty string in `UriParser::setQueryUri` method, if query params were not pass. It needs, so that `Paginator::setQueryUri` str_replace get empty string instead of `null` and does not crash. --- src/UriParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UriParser.php b/src/UriParser.php index 55658e3..f019b61 100644 --- a/src/UriParser.php +++ b/src/UriParser.php @@ -80,7 +80,7 @@ private function setQueryUri($uri) { $explode = explode('?', $uri); - $this->queryUri = (isset($explode[1])) ? rawurldecode($explode[1]) : null; + $this->queryUri = (isset($explode[1])) ? rawurldecode($explode[1]) : ''; } private function setQueryParameters($queryUri)