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'); } };