From d653327cf8be5336b7fdd35e52e3ef38869a5bbe Mon Sep 17 00:00:00 2001 From: Bastien Philippe Date: Fri, 15 Dec 2023 10:37:11 +0100 Subject: [PATCH] Fix ordering --- src/Illuminate/Collections/Arr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Collections/Arr.php b/src/Illuminate/Collections/Arr.php index 00834c04d080..c5e89bf62e02 100644 --- a/src/Illuminate/Collections/Arr.php +++ b/src/Illuminate/Collections/Arr.php @@ -115,7 +115,7 @@ public static function dot($array, $prepend = '') if (is_array($value) && ! empty($value)) { $results[] = static::dot($value, $prepend.$key.'.'); } else { - $results[0][$prepend.$key] = $value; + $results[][$prepend.$key] = $value; } }