@@ -88,9 +88,7 @@ both provide list and type information it is probably better that:
8888 just mapped properties) are returned.
8989* The :class: `Symfony\\ Bridge\\ Doctrine\\ PropertyInfo\\ DoctrineExtractor `
9090 has priority for type information so that entity metadata is used instead
91- of type-hinting to provide more accurate type information.
92-
93- .. code-block :: php
91+ of type-hinting to provide more accurate type information::
9492
9593 use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
9694 use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
@@ -373,21 +371,7 @@ ReflectionExtractor
373371
374372Using PHP reflection, the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ ReflectionExtractor `
375373provides list, type and access information from setter and accessor methods.
376- It can also provide return and scalar types for PHP 7+.
377-
378- .. note ::
379-
380- When using the Symfony framework, this service is automatically registered
381- when the ``property_info `` feature is enabled:
382-
383- .. code-block :: yaml
384-
385- # app/config/config.yml
386- framework :
387- property_info :
388- enabled : true
389-
390- .. code-block :: php
374+ It can also provide return and scalar types for PHP 7+::
391375
392376 use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
393377
@@ -401,6 +385,18 @@ It can also provide return and scalar types for PHP 7+.
401385 $reflectionExtractor->isReadable($class, $property);
402386 $reflectionExtractor->isWritable($class, $property);
403387
388+ .. note ::
389+
390+ When using the Symfony framework, this service is automatically registered
391+ when the ``property_info `` feature is enabled:
392+
393+ .. code-block :: yaml
394+
395+ # app/config/config.yml
396+ framework :
397+ property_info :
398+ enabled : true
399+
404400 PhpDocExtractor
405401~~~~~~~~~~~~~~~
406402
0 commit comments