Skip to content

Commit 41b63cc

Browse files
committed
CHG setChunkSize only accepts values over 0
1 parent 17b899b commit 41b63cc

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/DatabaseHandler.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,9 @@ public function allowDeleteWithoutWhere($allow = true)
8080

8181
public function setChunkSize(?int $chunkSize)
8282
{
83+
if (isset($chunkSize) && $chunkSize < 1) {
84+
return;
85+
}
8386
$this->chunkSize = $chunkSize;
8487
}
8588

0 commit comments

Comments
 (0)