Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 7dd443b

Browse filesBrowse files
committed
minor #14143 [PropertyAccess] Backport typed property support to 4.4 (ogizanagi)
This PR was merged into the 4.4 branch. Discussion ---------- [PropertyAccess] Backport typed property support to 4.4 Backported in symfony/symfony#37971 Commits ------- cc6ed26 [PropertyAccess] Backport typed property support to 4.4
2 parents 6951744 + cc6ed26 commit 7dd443b
Copy full SHA for 7dd443b

File tree

1 file changed

+5
-0
lines changed
Filter options

1 file changed

+5
-0
lines changed

‎components/property_info.rst

Copy file name to clipboardExpand all lines: components/property_info.rst
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ class exposes public methods to extract several types of information:
122122

123123
* :ref:`List of properties <property-info-list>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface::getProperties`
124124
* :ref:`Property type <property-info-type>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface::getTypes`
125+
(including typed properties since PHP 7.4)
125126
* :ref:`Property description <property-info-description>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface::getShortDescription` and :method:`Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface::getLongDescription`
126127
* :ref:`Property access details <property-info-access>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface::isReadable` and :method:`Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface::isWritable`
127128
* :ref:`Property initializable through the constructor <property-info-initializable>`: :method:`Symfony\\Component\\PropertyInfo\\PropertyInitializableExtractorInterface::isInitializable`
@@ -292,6 +293,10 @@ string values: ``array``, ``bool``, ``callable``, ``float``, ``int``,
292293
Constants inside the :class:`Symfony\\Component\\PropertyInfo\\Type`
293294
class, in the form ``Type::BUILTIN_TYPE_*``, are provided for convenience.
294295

296+
.. versionadded:: 4.4
297+
298+
Support for typed properties (added in PHP 7.4) was introduced in Symfony 4.4.
299+
295300
``Type::isNullable()``
296301
~~~~~~~~~~~~~~~~~~~~~~
297302

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.