We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 211b044 commit dae0aa0Copy full SHA for dae0aa0
src/Reader/Iterable/IterableDataReader.php
@@ -37,7 +37,7 @@ class IterableDataReader implements DataReaderInterface
37
protected iterable $data;
38
private ?Sort $sort = null;
39
private ?FilterInterface $filter = null;
40
- private ?int $limit = null;
+ private int $limit = 0;
41
private int $offset = 0;
42
43
private array $filterProcessors = [];
@@ -146,7 +146,7 @@ public function read(): array
146
147
foreach ($sortedData as $item) {
148
// do not return more than limit items
149
- if ($this->limit !== null && count($data) === $this->limit) {
+ if ($this->limit > 0 && count($data) === $this->limit) {
150
break;
151
}
152
0 commit comments