From a1577aec5915704a62b58119ef3246e495182b19 Mon Sep 17 00:00:00 2001 From: TakeshiDaveau Date: Thu, 28 Mar 2024 11:00:51 +0100 Subject: [PATCH] fix: reset query params before generate the query --- src/Clients/GenericClient.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Clients/GenericClient.php b/src/Clients/GenericClient.php index 36bf099..3a6bc6d 100644 --- a/src/Clients/GenericClient.php +++ b/src/Clients/GenericClient.php @@ -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);