Commit 81a89604 authored by Taylor Otwell's avatar Taylor Otwell

refactor the arr class to fix a few bugs.

parent de38744d
...@@ -46,6 +46,8 @@ class Arr { ...@@ -46,6 +46,8 @@ class Arr {
*/ */
public static function set(&$array, $key, $value) public static function set(&$array, $key, $value)
{ {
if (is_null($key)) return $array = $value;
$keys = explode('.', $key); $keys = explode('.', $key);
while (count($keys) > 1) while (count($keys) > 1)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment