Skip to content

Commit

Permalink
Resolves selahattinunlu#52: URI Parser.
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
Black Maize God committed Jun 29, 2023
1 parent bdc6246 commit 79dc040
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/UriParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 79dc040

Please sign in to comment.