From b8974eb0a3dccef3be9e84e260bfa5bf2f66de44 Mon Sep 17 00:00:00 2001 From: erikn69 Date: Wed, 4 Oct 2023 12:49:01 -0500 Subject: [PATCH] fix ArrayObject::__construct() TypeError --- src/Audit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Audit.php b/src/Audit.php index ebbdc71b..33d69634 100644 --- a/src/Audit.php +++ b/src/Audit.php @@ -135,7 +135,7 @@ protected function getFormattedValue(Model $model, string $key, $value) $key, $model->getCasts() ) && $model->getCasts()[$key] == 'Illuminate\Database\Eloquent\Casts\AsArrayObject') { - $arrayObject = new \Illuminate\Database\Eloquent\Casts\ArrayObject(json_decode($value, true)); + $arrayObject = new \Illuminate\Database\Eloquent\Casts\ArrayObject(json_decode($value, true) ?: []); return $arrayObject; }