Skip to content

Commit

Permalink
Merge pull request #28676 from awais-vteams/5.8
Browse files Browse the repository at this point in the history
[5.8] Arr::collapse performance update
  • Loading branch information
taylorotwell authored May 31, 2019
2 parents fe9c616 + dc87ad3 commit 5992f10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Support/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public static function collapse($array)
$results[] = $values;
}

return array_merge([], [], ...$results);
return array_merge([], ...$results);
}

/**
Expand Down

0 comments on commit 5992f10

Please sign in to comment.