8000 minor #9796 Fix error on @MaxDepth property (rebangm) · symfony/symfony-docs@7074b29 · GitHub
[go: up one dir, main page]

Skip to content 65EB

Commit 7074b29

Browse files
committed
minor #9796 Fix error on @MaxDepth property (rebangm)
This PR was merged into the 3.4 branch. Discussion ---------- Fix error on @MaxDepth property Change property annotation according to documentation <!-- 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 ------- 2ce9d9c Fix error on @MaxDepth property for annotation, yaml and xml. Change property according to documentation
2 parents 7d243db + 2ce9d9c commit 7074b29

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/serializer.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -793,7 +793,7 @@ Here, we set it to 2 for the ``$child`` property:
793793
/**
794794
* @MaxDepth(2)
795795
*/
796-
public $foo;
796+
public $child;
797797
798798
// ...
799799
}
@@ -802,7 +802,7 @@ Here, we set it to 2 for the ``$child`` property:
802802
803803
Acme\MyObj:
804804
attributes:
805-
foo:
805+
child:
806806
max_depth: 2
807807
808808
.. code-block:: xml
@@ -814,7 +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" max-depth="2" />
817+
<attribute name="child" max-depth="2" />
818818
</class>
819819
</serializer>
820820

0 commit comments

Comments
 (0)
0