Skip to content

Commit 24e31be

Browse files
algolia-botFluf22
andcommitted
fix(clients): update browse iterator (generated)
algolia/api-clients-automation#4058 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent 9aea95b commit 24e31be

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Iterators/RuleIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function fetchNextPage()
1515
{
1616
if (
1717
is_array($this->response)
18-
&& $this->key >= $this->response['nbHits']
18+
&& $this->key >= count($this->response['hits'])
1919
) {
2020
return;
2121
}

lib/Iterators/SynonymIterator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ protected function fetchNextPage()
1515
{
1616
if (
1717
is_array($this->response)
18-
&& $this->key >= $this->response['nbHits']
18+
&& $this->key >= count($this->response['hits'])
1919
) {
2020
return;
2121
}

0 commit comments

Comments
 (0)