Skip to content

Commit

Permalink
Use ::empty().
Browse files Browse the repository at this point in the history
  • Loading branch information
drupol committed Aug 19, 2019
1 parent 2ef2342 commit 2bb704b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ public function proxy(string $method, string $proxyMethod, ...$parameters): Coll
*/
public static function range(int $start = 0, $end = \INF, $step = 1): CollectionInterface
{
return self::withArray([])->run(Range::with($start, $end, $step));
return self::empty()->run(Range::with($start, $end, $step));
}

/**
Expand Down

0 comments on commit 2bb704b

Please sign in to comment.