Skip to content

Commit 91f5c90

Browse files
MrYamousOskarStarkmtarld
authored
Apply suggestions from code review
Co-authored-by: Oskar Stark <[email protected]> Co-authored-by: Mathias Arlaud <[email protected]>
1 parent 8fbfbae commit 91f5c90

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

components/property_info.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,8 +182,8 @@ See :ref:`components-property-info-type` for info about the ``Type`` class.
182182

183183
.. deprecated:: 7.3
184184

185-
The :method:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor::getTypes` is
186-
deprecated since Symfony 7.3. Use the method :method:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor::getType`
185+
The :method:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor::getTypes` method is
186+
deprecated since Symfony 7.3. Use the :method:`Symfony\\Component\\PropertyInfo\\PropertyInfoExtractor::getType` method
187187
instead.
188188

189189
Documentation Block
@@ -571,7 +571,7 @@ on the constructor arguments::
571571
use Symfony\Component\PropertyInfo\Extractor\ConstructorExtractor;
572572

573573
$constructorExtractor = new ConstructorExtractor([new ReflectionExtractor()]);
574-
$constructorExtractor->getType(Foo::class, 'bar')[0]->getBuiltinType(); // returns 'string'
574+
(string) $constructorExtractor->getType(Foo::class, 'bar')[0]; // returns 'string'
575575

576576
.. _`components-property-information-extractors-creation`:
577577

0 commit comments

Comments
 (0)