From 39146251331d916b44ce39ca7f0d9389f51b259f Mon Sep 17 00:00:00 2001 From: pxpm Date: Mon, 2 Dec 2024 12:55:08 +0000 Subject: [PATCH] fix type cast --- .../Uploaders/Support/Traits/HandleRepeatableUploads.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php b/src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php index 20240bca37..858a519be1 100644 --- a/src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php +++ b/src/app/Library/Uploaders/Support/Traits/HandleRepeatableUploads.php @@ -62,7 +62,7 @@ protected function handleRepeatableFiles(Model $entry): Model return $this->processRelationshipRepeatableUploaders($entry); } - $processedEntryValues = $this->processRepeatableUploads($entry, $value); + $processedEntryValues = $this->processRepeatableUploads($entry, $value)->toArray(); if ($this->isFake()) { $fakeValues = $entry->{$this->getFakeAttribute()} ?? []; @@ -159,7 +159,7 @@ protected function processRepeatableUploads(Model $entry, Collection $values): C }); } - return $values->toArray(); + return $values; } private function retrieveRepeatableFiles(Model $entry): Model