Skip to content

Commit

Permalink
Fix PHPStan
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszhanc committed Feb 9, 2022
1 parent 367a4c0 commit 9004d98
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Flow/ETL/Rows.php
Expand Up @@ -319,6 +319,10 @@ public function count() : int
*/
public function chunks(int $size) : array
{
if ($size < 1) {
throw InvalidArgumentException::because('Chunk size must be greater than 0');
}

$chunks = [];

foreach (\array_chunk($this->rows, $size) as $chunk) {
Expand Down

0 comments on commit 9004d98

Please sign in to comment.