Skip to content

Commit 13f0da3

Browse files
authored
Merge pull request #10 from Bit-Apps-Pro/fix/array-nested-key-issue
fix/nested-array-key-issue
2 parents ff5aa36 + d553902 commit 13f0da3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Helpers/Arr.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ public static function set(&$array, $key, $value)
564564
return $array = $value;
565565
}
566566

567-
$keys = explode('.', $key);
567+
$keys = \is_array($key) ? $key : explode('.', $key);
568568

569569
foreach ($keys as $i => $key) {
570570
if (\count($keys) === 1) {

0 commit comments

Comments
 (0)