Skip to content

Commit

Permalink
fix: reset query params before generate the query
Browse files Browse the repository at this point in the history
  • Loading branch information
TakeshiDaveau committed Mar 28, 2024
1 parent 5645899 commit a1577ae
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Clients/GenericClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ protected function setApiVersion($apiVersion)
*/
protected function setQueryParams(array $params)
{
$this->queryParameters = [];
$notAllowedParameters = array_diff_key($params, array_flip($this->possibleQueryParameters));
if (!empty($notAllowedParameters)) {
throw new QueryParamsException($notAllowedParameters, $this->possibleQueryParameters);
Expand Down

0 comments on commit a1577ae

Please sign in to comment.