File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -351,8 +351,9 @@ ReflectionExtractor
351
351
352
352
Using PHP reflection, the :class: `Symfony\\ Component\\ PropertyInfo\\ Extractor\\ ReflectionExtractor `
353
353
provides list, type and access information from setter and accessor methods.
354
- It can also give the type of a property, and if it is initializable through the
355
- constructor. It supports return and scalar types for PHP 7::
354
+ It can also give the type of a property (even extracting it from the constructor
355
+ arguments), and if it is initializable through the constructor. It supports
356
+ return and scalar types for PHP 7::
356
357
357
358
use Symfony\Component\PropertyInfo\Extractor\ReflectionExtractor;
358
359
@@ -371,6 +372,11 @@ constructor. It supports return and scalar types for PHP 7::
371
372
// Initializable information
372
373
$reflectionExtractor->isInitializable($class, $property);
373
374
375
+ .. versionadded :: 4.1
376
+
377
+ The feature to extract the property types from constructor arguments was
378
+ introduced in Symfony 4.1.
379
+
374
380
.. note ::
375
381
376
382
When using the Symfony framework, this service is automatically registered
You can’t perform that action at this time.
0 commit comments