8000 minor #11292 move the namespace before the use statements (OskarStark) · symfony/symfony-docs@6f1f6c0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6f1f6c0

Browse files
committed
minor #11292 move the namespace before the use statements (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- move the namespace before the use statements <!-- 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 ------- c5d217e move the namespace before the use statements
2 parents 67f5b9b + c5d217e commit 6f1f6c0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

components/serializer.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -799,10 +799,10 @@ Here, we set it to 2 for the ``$child`` property:
799799

800800
.. code-block:: php-annotations
801801
802-
use Symfony\Component\Serializer\Annotation\MaxDepth;
803-
804802
namespace Acme;
805803
804+
use Symfony\Component\Serializer\Annotation\MaxDepth;
805+
806806
class MyObj
807807
{
808808
/**
@@ -979,13 +979,13 @@ When using the component standalone, an implementation of :class:`Symfony\\Compo
979979
(usually an instance of :class:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor`) must be passed as the 4th
980980
parameter of the ``ObjectNormalizer``::
981981

982+
namespace Acme;
983+
982984
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
983985
use Symfony\Component\Serializer\Serializer;
984986
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
985987
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
986988

987-
namespace Acme;
988-
989989
class ObjectOuter
990990
{
991991
private $inner;

0 commit comments

Comments
 (0)
0