Skip to content

Commit 1652608

Browse files
authored
Simplify Arr::dot (#49461)
1 parent c38ff56 commit 1652608

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Collections/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public static function divide($array)
109109
*/
110110
public static function dot($array, $prepend = '')
111111
{
112-
$results = [[]];
112+
$results = [];
113113

114114
foreach ($array as $key => $value) {
115115
if (is_array($value) && ! empty($value)) {

0 commit comments

Comments
 (0)