8000 minor #20767 [Serializer] Fix `defaultContext` example (HypeMC) · symfony/symfony-docs@0532fc6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0532fc6

Browse files
committed
minor #20767 [Serializer] Fix defaultContext example (HypeMC)
This PR was merged into the 7.2 branch. Discussion ---------- [Serializer] Fix `defaultContext` example The current example has a mistake. Commits ------- d51154b [Serializer] Fix `defaultContext` example
2 parents 6c435fd + d51154b commit 0532fc6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serializer.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ instance to disallow extra fields while deserializing:
344344
345345
return static function (FrameworkConfig $framework): void {
346346
$framework->serializer()
347-
->defaultContext('', [
347+
->defaultContext([
348348
'allow_extra_attributes' => false,
349349
])
350350
;

0 commit comments

Comments
 (0)
0