From cc6ed26f39dfe79a561f2ceb85f67e1faa54dd89 Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Fri, 28 Aug 2020 15:03:45 +0200 Subject: [PATCH] [PropertyAccess] Backport typed property support to 4.4 --- components/property_info.rst | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/components/property_info.rst b/components/property_info.rst index 1997cf757d2..d8e3a693b12 100644 --- a/components/property_info.rst +++ b/components/property_info.rst @@ -122,6 +122,7 @@ class exposes public methods to extract several types of information: * :ref:`List of properties `: :method:`Symfony\\Component\\PropertyInfo\\PropertyListExtractorInterface::getProperties` * :ref:`Property type `: :method:`Symfony\\Component\\PropertyInfo\\PropertyTypeExtractorInterface::getTypes` + (including typed properties since PHP 7.4) * :ref:`Property description `: :method:`Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface::getShortDescription` and :method:`Symfony\\Component\\PropertyInfo\\PropertyDescriptionExtractorInterface::getLongDescription` * :ref:`Property access details `: :method:`Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface::isReadable` and :method:`Symfony\\Component\\PropertyInfo\\PropertyAccessExtractorInterface::isWritable` * :ref:`Property initializable through the constructor `: :method:`Symfony\\Component\\PropertyInfo\\PropertyInitializableExtractorInterface::isInitializable` @@ -292,6 +293,10 @@ string values: ``array``, ``bool``, ``callable``, ``float``, ``int``, Constants inside the :class:`Symfony\\Component\\PropertyInfo\\Type` class, in the form ``Type::BUILTIN_TYPE_*``, are provided for convenience. +.. versionadded:: 4.4 + + Support for typed properties (added in PHP 7.4) was introduced in Symfony 4.4. + ``Type::isNullable()`` ~~~~~~~~~~~~~~~~~~~~~~ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy