We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b01a51f commit 96a632bCopy full SHA for 96a632b
1 file changed
system/Model.php
@@ -26,6 +26,7 @@
26
use CodeIgniter\Validation\ValidationInterface;
27
use Config\Database;
28
use Config\Feature;
29
+use Generator;
30
use stdClass;
31
32
/**
@@ -525,7 +526,14 @@ public function countAllResults(bool $reset = true, bool $test = false)
525
526
return $this->builder()->testMode($test)->countAllResults($reset);
527
}
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
537
{
538
if ($size <= 0) {
539
throw new InvalidArgumentException('$size must be a positive integer.');
0 commit comments