Skip to content

Commit

Permalink
fix: warning on missing id
Browse files Browse the repository at this point in the history
  • Loading branch information
luceos committed Jul 8, 2024
1 parent 916a843 commit 94e29ed
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/PreferredSortingSerializer.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@

class PreferredSortingSerializer extends AbstractSerializer
{
public function getId($model)
{
return null;
}

protected function getDefaultAttributes($model)
{
return $model;
Expand Down

0 comments on commit 94e29ed

Please # to comment.