Skip to content
This repository has been archived by the owner on Jun 22, 2022. It is now read-only.

Commit

Permalink
Merge pull request #23 from martindilling/patch-1
Browse files Browse the repository at this point in the history
Use `Arr::get` instead of the deprecated `array_get`
  • Loading branch information
calebporzio committed Jan 6, 2020
2 parents 9cbe641 + b1c9cc6 commit 1cee985
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/OnboardingStep.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit 1cee985

Please sign in to comment.