From 2bb704baae6aa51a8ad7fceef34d277defbebb26 Mon Sep 17 00:00:00 2001 From: Pol Dellaiera Date: Mon, 19 Aug 2019 15:55:33 +0200 Subject: [PATCH] Use ::empty(). --- src/Collection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Collection.php b/src/Collection.php index 9dc7830fc..be331afd1 100644 --- a/src/Collection.php +++ b/src/Collection.php @@ -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)); } /**