Skip to content

Commit

Permalink
Merge pull request #569 from vdbelt/fix/arr_helper
Browse files Browse the repository at this point in the history
Fix for deprecated helpers
  • Loading branch information
Gummibeer authored Jul 23, 2019
2 parents 70cb123 + 2ff3730 commit 7a7d093
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/DetectsChangesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Spatie\Activitylog\Test;

use Carbon\Carbon;
use Illuminate\Support\Arr;
use Spatie\Activitylog\Models\Activity;
use Spatie\Activitylog\Test\Models\User;
use Spatie\Activitylog\Test\Models\Article;
Expand Down Expand Up @@ -700,7 +701,7 @@ public function setDescriptionAttribute($value)

public function getDescriptionAttribute()
{
return array_get(json_decode($this->attributes['json'], true), 'description');
return Arr::get(json_decode($this->attributes['json'], true), 'description');
}
};

Expand Down

0 comments on commit 7a7d093

Please sign in to comment.