Commit 614811bb authored by Taylor Otwell's avatar Taylor Otwell

Use array_key_exists in Arr::get instead of isset.

parent 28c6ac93
......@@ -22,7 +22,7 @@ class Arr {
foreach (explode('.', $key) as $segment)
{
if ( ! isset($array[$segment]))
if ( ! array_key_exists($segment, $array))
{
return is_callable($default) ? call_user_func($default) : $default;
}
......
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