Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b4369db

Browse files
[*]: Minor checks
[*]: Minor checks
1 parent edf6bf8 commit b4369db

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

‎src/DotArray.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function ($match) {
147147

148148
unset($path, $matches);
149149

150-
return $segments;
150+
return (empty($segments) ? [] : $segments);
151151
}
152152

153153

@@ -351,9 +351,11 @@ public function merge($array)
351351
[
352352
$this, 'mergeRecursive',
353353
],
354-
\array_merge(
355-
[$this->items],
356-
\func_get_args()
354+
\array_values(
355+
\array_merge(
356+
[$this->items],
357+
\func_get_args()
358+
)
357359
)
358360
);
359361

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /