Skip to content

Commit 84cb4e9

Browse files
committed
minor #9629 Wrong attribute serializer xml (vgmaarten)
This PR was submitted for the master branch but it was merged into the 3.4 branch instead (closes #9629). Discussion ---------- Wrong attribute serializer xml The given example in docs is wrong. https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Serializer/Mapping/Loader/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd#L67 https://github.com/symfony/symfony/blob/master/src/Symfony/Component/Serializer/Tests/Fixtures/serialization.xml#L19 <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 3ffa764 Wrong attribute serializer xml
2 parents 91f9cbf + 3ffa764 commit 84cb4e9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

components/serializer.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -814,9 +814,7 @@ Here, we set it to 2 for the ``$child`` property:
814814
http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd"
815815
>
816816
<class name="Acme\MyObj">
817-
<attribute name="foo">
818-
<max-depth>2</max-depth>
819-
</attribute>
817+
<attribute name="foo" max-depth="2" />
820818
</serializer>
821819
822820
The metadata loader corresponding to the chosen format must be configured in

0 commit comments

Comments
 (0)