Skip to content

Commit

Permalink
Minor update.
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 20, 2019
1 parent fd081c2 commit 04739ad
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,11 @@ public function walk(callable ...$callbacks): CollectionInterface
/**
* Create a new collection instance.
*
* @param null|array|callable|Closure|CollectionInterface|\Iterator $data
* @param array|callable|Closure|CollectionInterface|\Iterator $data
*
* @return \drupol\collection\Contract\Collection
*/
public static function with($data = []): CollectionInterface
public static function with($data): CollectionInterface
{
if ($data instanceof Closure || \is_callable($data)) {
return self::withClosure($data);
Expand Down
2 changes: 1 addition & 1 deletion src/Operation/Chunk.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function run(CollectionInterface $collection): CollectionInterface
$size = $this->parameters[0];

if (0 >= $size) {
return Collection::with();
return Collection::empty();
}

return Collection::with(
Expand Down

0 comments on commit 04739ad

Please sign in to comment.