Skip to content

Commit 7fb21fd

Browse files
committed
minor #20770 [Serializer] Fix defaultContext example 6.4 (HypeMC)
This PR was merged into the 6.4 branch. Discussion ---------- [Serializer] Fix `defaultContext` example 6.4 Follow-up to #20767, this can now be merged into 6.4 cause of symfony/symfony#59988. Commits ------- 5f9a259 [Serializer] Fix `defaultContext` example
2 parents cae0559 + 5f9a259 commit 7fb21fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

serializer.rst

+1-1
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)