Use array_key_exists in Arr::get instead of isset.
This commit is contained in:
parent
28c6ac93ef
commit
614811bb40
|
@ -22,7 +22,7 @@ public static function get($array, $key, $default = null)
|
|||
|
||||
foreach (explode('.', $key) as $segment)
|
||||
{
|
||||
if ( ! isset($array[$segment]))
|
||||
if ( ! array_key_exists($segment, $array))
|
||||
{
|
||||
return is_callable($default) ? call_user_func($default) : $default;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue