8000 Fix error on @MaxDepth property for annotation, yaml and xml. · symfony/symfony-docs@2ce9d9c · GitHub
[go: up one dir, main page]

Skip to content

Commit 2ce9d9c

Browse files
rebangmJean-Philippe Dépigny
authored and
Jean-Philippe Dépigny
committed
Fix error on @MaxDepth property for annotation, yaml and xml.
Change property according to documentation
1 parent b2c4d31 commit 2ce9d9c

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