Skip to content

Commit

Permalink
[PropertyInfo] Add PropertyDescriptionExtractorInterface to PhpStanEx…
Browse files Browse the repository at this point in the history
…tractor
  • Loading branch information
alamirault committed Jan 6, 2025
1 parent 2ccc964 commit 7d7e77c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions components/property_info.rst
Original file line number Diff line number Diff line change
Expand Up @@ -469,7 +469,18 @@ information from annotations of properties and methods, such as ``@var``,
use App\Domain\Foo;

$phpStanExtractor = new PhpStanExtractor();

// Type information.
$phpStanExtractor->getTypesFromConstructor(Foo::class, 'bar');
// Description information.
$phpStanExtractor->getShortDescription($class, 'bar');
$phpStanExtractor->getLongDescription($class, 'bar');

.. versionadded:: 7.3

The :method:`Symfony\\Component\\PropertyInfo\\Extractor\\PhpStanExtractor::getShortDescription`
and :method:`Symfony\\Component\\PropertyInfo\\Extractor\\PhpStanExtractor::getLongDescription`
methods were introduced in Symfony 7.3.

SerializerExtractor
~~~~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 7d7e77c

Please # to comment.