Skip to content

Commit

Permalink
fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Nov 1, 2016
1 parent 11d30ff commit 46ebd7f
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/Illuminate/Support/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -955,13 +955,7 @@ public function split($numberOfGroups)
*/
public function chunk($size)
{
if ($size < 0) {
throw new InvalidArgumentException(
'Size parameter expected to be greater than 0'
);
}

if ($size == 0) {
if ($size <= 0) {
return new static;
}

Expand Down

0 comments on commit 46ebd7f

Please sign in to comment.