Skip to content

Navigation Menu

Sign in
Appearance settings

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 fa8b095

Browse filesBrowse files
committed
bug #52917 [Serializer] Fix unexpected allowed attributes (mtarld)
This PR was merged into the 5.4 branch. Discussion ---------- [Serializer] Fix unexpected allowed attributes | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | Fix #52673 #49710 | License | MIT A more accurate approach than #52680 Commits ------- 900d034003 [Serializer] Fix unexpected allowed attributes
2 parents a716163 + 1b9da97 commit fa8b095
Copy full SHA for fa8b095

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎Resources/config/serializer.php

Copy file name to clipboardExpand all lines: Resources/config/serializer.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@
137137
service('property_info')->ignoreOnInvalid(),
138138
service('serializer.mapping.class_discriminator_resolver')->ignoreOnInvalid(),
139139
null,
140+
[],
141+
service('property_info')->ignoreOnInvalid(),
140142
])
141143

142144
->alias(PropertyNormalizer::class, 'serializer.normalizer.property')

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.