Skip to content
This repository has been archived by the owner on Aug 22, 2023. It is now read-only.

Commit

Permalink
cast
Browse files Browse the repository at this point in the history
  • Loading branch information
GromNaN committed Aug 18, 2023
1 parent 4d4d456 commit 33ce71e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Relations/BelongsToMany.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ protected function formatSyncList(array $records)
if (! is_array($attributes)) {
[$id, $attributes] = [$attributes, []];
}
$results[$id] = $attributes;
$results[(string) $id] = $attributes;
}

return $results;
Expand Down

0 comments on commit 33ce71e

Please sign in to comment.