Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5f9a259

Browse filesBrowse files
committed
[Serializer] Fix defaultContext example
1 parent cae0559 commit 5f9a259
Copy full SHA for 5f9a259

File tree

1 file changed

+1
-1
lines changed
Filter options

1 file changed

+1
-1
lines changed

‎serializer.rst

Copy file name to clipboardExpand all lines: serializer.rst
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.