From c26cbbf3db9fb0d87b174298eff4d0bcc6712959 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Sun, 12 Jun 2016 16:30:02 +0900 Subject: [PATCH] Remove a redundant condition in Arr::get() --- src/Illuminate/Support/Arr.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Support/Arr.php b/src/Illuminate/Support/Arr.php index 13aa89180675..0772b8f9dc58 100755 --- a/src/Illuminate/Support/Arr.php +++ b/src/Illuminate/Support/Arr.php @@ -282,7 +282,7 @@ public static function get($array, $key, $default = null) } foreach (explode('.', $key) as $segment) { - if (static::accessible($array) && static::exists($array, $segment)) { + if (static::exists($array, $segment)) { $array = $array[$segment]; } else { return value($default);