Skip to content

Commit cf49d75

Browse files
author
Ivan Salnikov
committed
fix limit
1 parent 4b170e6 commit cf49d75

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/components/BaseRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,15 @@ private function prepareMinOption()
163163
private function prepareLimit()
164164
{
165165
if ($this->limit === null) {
166-
$this->limit = 999;
166+
$this->limit = PHP_INT_MAX;
167167
}
168168

169169
if ($this->limit < 1) {
170170
$this->limit = 1;
171171
}
172172

173173
// Maximum number of rows cannot be less then minimum number.
174-
if ($this->limit !== null && $this->limit < $this->min) {
174+
if ($this->limit < $this->min) {
175175
$this->limit = $this->min;
176176
}
177177
}

0 commit comments

Comments
 (0)