From 7c16ae7304d226c830f95d7571235aa942514636 Mon Sep 17 00:00:00 2001 From: Olatunbosun Egberinde Date: Sat, 5 Oct 2019 10:40:07 +0100 Subject: [PATCH] Removed deprecated array_get and used Arr::get() in in Setting.php --- src/Setting/Setting.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Setting/Setting.php b/src/Setting/Setting.php index f18e951..745afa3 100644 --- a/src/Setting/Setting.php +++ b/src/Setting/Setting.php @@ -3,6 +3,7 @@ namespace Unisharp\Setting; use Illuminate\Contracts\Cache\Factory as CacheContract; +use Illuminate\Support\Arr; class Setting { @@ -226,7 +227,7 @@ protected function getSubValue($key) $subkey = $this->removeMainKey($key); - $setting = array_get($setting, $subkey); + $setting = Arr::get($setting, $subkey); return $setting; }