File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2626use CodeIgniter \Validation \ValidationInterface ;
2727use Config \Database ;
2828use Config \Feature ;
29+ use Generator ;
2930use stdClass ;
3031
3132/**
@@ -525,7 +526,14 @@ public function countAllResults(bool $reset = true, bool $test = false)
525526 return $ this ->builder ()->testMode ($ test )->countAllResults ($ reset );
526527 }
527528
528- private function iterateChunks (int $ size ): \Generator
529+ /**
530+ * Iterates over the result set in chunks of the specified size.
531+ *
532+ * @param int $size The number of records to retrieve in each chunk.
533+ *
534+ * @returns Generator<array<int, array|object>>
535+ */
536+ private function iterateChunks (int $ size ): Generator
529537 {
530538 if ($ size <= 0 ) {
531539 throw new InvalidArgumentException ('$size must be a positive integer. ' );
You can’t perform that action at this time.
0 commit comments