From 2ff3730c37527d6ad8b44cec4a697834d16e0153 Mon Sep 17 00:00:00 2001 From: Martin van de Belt Date: Tue, 23 Jul 2019 16:44:22 +0800 Subject: [PATCH] Fix for deprecated helpers --- tests/DetectsChangesTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/DetectsChangesTest.php b/tests/DetectsChangesTest.php index 21318963..a647958b 100644 --- a/tests/DetectsChangesTest.php +++ b/tests/DetectsChangesTest.php @@ -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; @@ -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'); } };