Skip to content

Commit 7d7e77c

Browse files
committed
[PropertyInfo] Add PropertyDescriptionExtractorInterface to PhpStanExtractor
1 parent 2ccc964 commit 7d7e77c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/property_info.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -469,7 +469,18 @@ information from annotations of properties and methods, such as ``@var``,
469469
use App\Domain\Foo;
470470

471471
$phpStanExtractor = new PhpStanExtractor();
472+
473+
// Type information.
472474
$phpStanExtractor->getTypesFromConstructor(Foo::class, 'bar');
475+
// Description information.
476+
$phpStanExtractor->getShortDescription($class, 'bar');
477+
$phpStanExtractor->getLongDescription($class, 'bar');
478+
479+
.. versionadded:: 7.3
480+
481+
The :method:`Symfony\\Component\\PropertyInfo\\Extractor\\PhpStanExtractor::getShortDescription`
482+
and :method:`Symfony\\Component\\PropertyInfo\\Extractor\\PhpStanExtractor::getLongDescription`
483+
methods were introduced in Symfony 7.3.
473484

474485
SerializerExtractor
475486
~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)