Skip to content

Commit 080b71f

Browse files
committed
minor #20534 [PropertyInfo] Add PropertyDescriptionExtractorInterface 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
2 parents e4f8ff8 + 7d7e77c commit 080b71f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

components/property_info.rst

+11
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)