Skip to content

Commit 93dcc3f

Browse files
committed
Fix comments
1 parent 97f48e5 commit 93dcc3f

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

components/serializer.rst

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -663,19 +663,19 @@ property:
663663

664664
.. code-block:: php-annotations
665665
666-
use Symfony\Component\Serializer\Annotation\MaxDepth;
666+
use Symfony\Component\Serializer\Annotation\MaxDepth;
667667
668-
namespace Acme;
668+
namespace Acme;
669669
670-
class MyObj
671-
{
672-
/**
673-
* @MaxDepth(2)
674-
*/
675-
public $foo;
670+
class MyObj
671+
{
672+
/**
673+
* @MaxDepth(2)
674+
*/
675+
public $foo;
676676
677-
// ...
678-
}
677+
// ...
678+
}
679679
680680
.. code-block:: yaml
681681
@@ -703,7 +703,7 @@ It is done automatically when using the Symfony Standard Edition. When using the
703703
to :ref:`the groups documentation <component-serializer-attributes-groups>` to learn how to do that.
704704

705705
The check is only done if the `enable_max_depth` key of the serializer context is set to ``true``. In the following
706-
example, the third level is not serialized because it is deeper than the configured maximum depth (2).
706+
example, the third level is not serialized because it is deeper than the configured maximum depth (2)::
707707

708708
$result = $serializer->normalize($level1, null, array('enable_max_depth' => true));
709709
/*

0 commit comments

Comments
 (0)