From 89a8b6926aca3e82ee448a7eed458e33344fe953 Mon Sep 17 00:00:00 2001 From: James Collins Date: Thu, 25 May 2023 12:21:23 +1000 Subject: [PATCH] update getVariantsAttribute return type --- app/Models/Media.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Media.php b/app/Models/Media.php index 2ed7936..f631c0e 100644 --- a/app/Models/Media.php +++ b/app/Models/Media.php @@ -147,9 +147,9 @@ class Media extends Model * Variants Get Mutator. * * @param mixed $value The value to mutate. - * @return array The mutated value. + * @return array|null The mutated value. */ - public function getVariantsAttribute(mixed $value): array + public function getVariantsAttribute(mixed $value): array|null { if (is_string($value) === true) { return json_decode($value, true);