Skip to content

Commit

Permalink
minor #20534 [PropertyInfo] Add `PropertyDescriptionExtractorInterfac…
Browse files Browse the repository at this point in the history
…e` to `PhpStanExtractor` (alamirault)

This PR was merged into the 7.3 branch.

Discussion
----------

[PropertyInfo] Add `PropertyDescriptionExtractorInterface` to `PhpStanExtractor`

Fix #20515

Like `PhpDocExtractor` above

Commits
-------

7d7e77c [PropertyInfo] Add PropertyDescriptionExtractorInterface to PhpStanExtractor
  • Loading branch information
javiereguiluz committed Jan 7, 2025
2 parents e4f8ff8 + 7d7e77c commit 080b71f
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 080b71f

Please # to comment.