Skip to content

Commit

Permalink
fix type cast
Browse files Browse the repository at this point in the history
  • Loading branch information
pxpm committed Dec 2, 2024
1 parent 9765a2b commit 3914625
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()} ?? [];
Expand Down Expand Up @@ -159,7 +159,7 @@ protected function processRepeatableUploads(Model $entry, Collection $values): C
});
}

return $values->toArray();
return $values;
}

private function retrieveRepeatableFiles(Model $entry): Model
Expand Down

0 comments on commit 3914625

Please sign in to comment.