Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
yansongda committed Oct 13, 2020
1 parent 8b28bbf commit d1079d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Arr.php
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ public static function set(array &$array, $key, $value): array
return $array = $value;
}

$keys = explode('.', $key);
$keys = explode('.', (string) $key);

while (count($keys) > 1) {
$key = array_shift($keys);
Expand Down

0 comments on commit d1079d4

Please sign in to comment.