Skip to content

Commit

Permalink
minor symfony#11292 move the namespace before the use statements (Osk…
Browse files Browse the repository at this point in the history
…arStark)

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
  • Loading branch information
javiereguiluz committed Apr 4, 2019
2 parents 67f5b9b + c5d217e commit 6f1f6c0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/serializer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -799,10 +799,10 @@ Here, we set it to 2 for the ``$child`` property:

.. code-block:: php-annotations
use Symfony\Component\Serializer\Annotation\MaxDepth;
namespace Acme;
use Symfony\Component\Serializer\Annotation\MaxDepth;
class MyObj
{
/**
Expand Down Expand Up @@ -979,13 +979,13 @@ When using the component standalone, an implementation of :class:`Symfony\\Compo
(usually an instance of :class:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor`) must be passed as the 4th
parameter of the ``ObjectNormalizer``::

namespace Acme;

use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Serializer\Normalizer\DateTimeNormalizer;
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;

namespace Acme;

class ObjectOuter
{
private $inner;
Expand Down

0 comments on commit 6f1f6c0

Please sign in to comment.