Skip to content

Commit cc586f2

Browse files
committed
fix: php cmd
1 parent 55cdfb8 commit cc586f2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+7527
-737
lines changed

clients/algoliasearch-client-php/lib/Api/AbtestingApi.php

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -267,18 +267,24 @@ public function listABTests($offset = 0, $limit = 10)
267267
$headerParams = [];
268268
$httpBody = [];
269269
// query params
270-
if (is_array($offset)) {
271-
$offset = ObjectSerializer::serializeCollection($offset, '', true);
272-
}
273270
if ($offset !== null) {
274-
$queryParams['offset'] = $offset;
271+
if ('form' === 'form' && is_array($offset)) {
272+
foreach ($offset as $key => $value) {
273+
$queryParams[$key] = $value;
274+
}
275+
} else {
276+
$queryParams['offset'] = $offset;
277+
}
275278
}
276279
// query params
277-
if (is_array($limit)) {
278-
$limit = ObjectSerializer::serializeCollection($limit, '', true);
279-
}
280280
if ($limit !== null) {
281-
$queryParams['limit'] = $limit;
281+
if ('form' === 'form' && is_array($limit)) {
282+
foreach ($limit as $key => $value) {
283+
$queryParams[$key] = $value;
284+
}
285+
} else {
286+
$queryParams['limit'] = $limit;
287+
}
282288
}
283289
$headers = $this->headerSelector->selectHeaders(
284290
['application/json'],

0 commit comments

Comments
 (0)