@@ -92,9 +92,7 @@ both provide list and type information it is probably better that:
9292 just mapped properties) are returned.
9393* The :class: `Symfony\\ Bridge\\ Doctrine\\ PropertyInfo\\ DoctrineExtractor `
9494 has priority for type information so that entity metadata is used instead
95- of type-hinting to provide more accurate type information.
96-
97- .. code-block :: php
95+ of type-hinting to provide more accurate type information::
9896
9997 use Symfony\Bridge\Doctrine\PropertyInfo\DoctrineExtractor;
10098 use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
@@ -357,21 +355,7 @@ ReflectionExtractor
357355Using PHP reflection, the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ ReflectionExtractor `
358356provides list, type and access information from setter and accessor methods.
359357It can also give the type of a property, and if it is initializable through the
360- constructor. It supports return and scalar types for PHP 7.
361-
362- .. note ::
363-
364- When using the Symfony framework, this service is automatically registered
365- when the ``property_info `` feature is enabled:
366-
367- .. code-block :: yaml
368-
369- # config/packages/framework.yaml
370- framework :
371- property_info :
372- enabled : true
373-
374- .. code-block :: php
358+ constructor. It supports return and scalar types for PHP 7::
375359
376360 use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
377361
@@ -390,6 +374,18 @@ constructor. It supports return and scalar types for PHP 7.
390374 // Initializable information
391375 $reflectionExtractor->isInitializable($class, $property);
392376
377+ .. note ::
378+
379+ When using the Symfony framework, this service is automatically registered
380+ when the ``property_info `` feature is enabled:
381+
382+ .. code-block :: yaml
383+
384+ # config/packages/framework.yaml
385+ framework :
386+ property_info :
387+ enabled : true
388+
393389 PhpDocExtractor
394390~~~~~~~~~~~~~~~
395391
0 commit comments