Skip to content

Commit

Permalink
refactor: added code suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
JoaoFerrazfs committed Oct 9, 2024
1 parent ccfdbfc commit 59c0d22
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/LegacyRecord.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ public function getCollection(): Collection
/**
* @throws BindingResolutionException
*/
public function bsonSerialize(): array|stdClass|Document
public function bsonSerialize(): array
{
return Container::make(ModelMapper::class)
->map(
Expand Down
2 changes: 1 addition & 1 deletion src/Model/AbstractModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ public function setWriteConcern(int $writeConcern): void
/**
* @throws BindingResolutionException
*/
public function bsonSerialize(): array|stdClass|Document
public function bsonSerialize(): array
{
return Container::make(ModelMapper::class)
->map(
Expand Down

0 comments on commit 59c0d22

Please sign in to comment.