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

Commit

Permalink
Use Arr::get instead of the deprecated array_get
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
martindilling authored Oct 24, 2019
1 parent 1295276 commit b1c9cc6
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 b1c9cc6

Please sign in to comment.