Skip to content

Commit

Permalink
Merge pull request #38 from emmanuel-tilleuls/bug-filter-null-query
Browse files Browse the repository at this point in the history
Fix bug validating url without query
  • Loading branch information
freekmurze authored Sep 20, 2022
2 parents 08ea0e0 + 403c8ce commit 801e652
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BaseUrlSigner.php
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected function getIntendedUrl(UriInterface $url)
unset($intendedQuery[$this->expiresParameter]);
unset($intendedQuery[$this->signatureParameter]);

return $url->withQuery($this->buildQueryStringFromArray($intendedQuery));
return $url->withQuery($this->buildQueryStringFromArray($intendedQuery) ?? '');
}

/**
Expand Down

0 comments on commit 801e652

Please sign in to comment.