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

Skip to content

Commit 85af7a2

Browse files
bug #39672 [FrameworkBundle] Fix UidNormalizer priority (fancyweb)
This PR was merged into the 5.2 branch. Discussion ---------- [FrameworkBundle] Fix UidNormalizer priority | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - `AbstractUid` implements `\JsonSerializable`. `JsonSerializableNormalizer` has a priority of `-900`, so it's actually this normalizer that is used instead of the good one. It does not change the result but it adds an extra layer. Commits ------- 1c652a7 [FrameworkBundle] Fix UidNormalizer priority
2 parents 1e8fe94 + 1c652a7 commit 85af7a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/Resources/config/serializer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
->tag('serializer.normalizer', ['priority' => 1000])
110110

111111
->set('serializer.normalizer.uid', UidNormalizer::class)
112-
->tag('serializer.normalizer', ['priority' => -915])
112+
->tag('serializer.normalizer', ['priority' => -890])
113113

114114
->set('serializer.normalizer.form_error', FormErrorNormalizer::class)
115115
->tag('serializer.normalizer', ['priority' => -915])

0 commit comments

Comments
 (0)