From dc87ad37a736b4b8ab469c13c17cf4263bb64a1e Mon Sep 17 00:00:00 2001 From: Awais Date: Fri, 31 May 2019 11:33:24 +0500 Subject: [PATCH] Arr::collapse performance update --- src/Illuminate/Support/Arr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Support/Arr.php b/src/Illuminate/Support/Arr.php index 10a0f26889a7..ebc882dac293 100755 --- a/src/Illuminate/Support/Arr.php +++ b/src/Illuminate/Support/Arr.php @@ -58,7 +58,7 @@ public static function collapse($array) $results[] = $values; } - return array_merge([], [], ...$results); + return array_merge([], ...$results); } /**