Skip to content

Commit

Permalink
Fixed normalization context group value (#1815)
Browse files Browse the repository at this point in the history
`groups` expect for array, but not a string
  • Loading branch information
wow-apps authored Oct 16, 2023
1 parent 6931484 commit 1de48f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/controllers.md
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ use Symfony\Component\Serializer\Annotation\Groups;
name: 'publication',
uriTemplate: '/books/{id}/publication',
controller: CreateBookPublication::class,
normalizationContext: ['groups' => 'publication']
normalizationContext: ['groups' => ['publication']],
)
])]
class Book
Expand Down

0 comments on commit 1de48f9

Please sign in to comment.