Skip to content

Commit aa96bd3

Browse files
committed
fix(php): update browse iterators
1 parent fc30656 commit aa96bd3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

clients/algoliasearch-client-php/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
}

clients/algoliasearch-client-php/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)