Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fa8b095

Browse 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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Resources/config/serializer.php

Lines 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)