From b1c9cc60a9a63b58f6a9be82ad0ce1d52ffda723 Mon Sep 17 00:00:00 2001 From: Martin Dilling-Hansen Date: Thu, 24 Oct 2019 14:54:06 +0200 Subject: [PATCH] Use `Arr::get` instead of the deprecated `array_get` In Laravel 6 the array_* helpers has been removed from the core framework (https://laravel.com/docs/6.x/upgrade#helpers) So changed it to use the `Illuminate\Support\Arr` class instead, and that is also the same in previous versions. --- src/OnboardingStep.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/OnboardingStep.php b/src/OnboardingStep.php index 0ca6507..41ff2b5 100644 --- a/src/OnboardingStep.php +++ b/src/OnboardingStep.php @@ -2,6 +2,8 @@ namespace Calebporzio\Onboard; +use Illuminate\Support\Arr; + /** * The main class for this package. This contains all the logic * for creating, and accessing onboarding steps. @@ -126,7 +128,7 @@ public function incomplete() */ public function attribute($key, $default = null) { - return array_get($this->attributes, $key, $default); + return Arr::get($this->attributes, $key, $default); } /**