From 4069a5f6dfdde6116a14637fe999b530ccf47196 Mon Sep 17 00:00:00 2001 From: Marco Woehr Date: Thu, 24 Nov 2022 13:02:57 +0100 Subject: [PATCH] Update property_info.rst Since Symfony 6.1 the Method `Type::getCollectionValueType() : ?self` (5.0) was changed to `Type::getCollectionValueTypes() : array` (6.1) the Docs are missleading i ran into an error after migrating to 6.1 --- components/property_info.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/property_info.rst b/components/property_info.rst index abddaad0ae1..48dfac1f59b 100644 --- a/components/property_info.rst +++ b/components/property_info.rst @@ -323,13 +323,13 @@ this returns ``true`` if: ``@var SomeClass``, ``@var SomeClass``, ``@var Doctrine\Common\Collections\Collection``, etc.) -``Type::getCollectionKeyType()`` & ``Type::getCollectionValueType()`` +``Type::getCollectionKeyType()`` & ``Type::getCollectionValueTypes()`` ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ If the property is a collection, additional type objects may be returned for both the key and value types of the collection (if the information is available), via the :method:`Type::getCollectionKeyType() ` -and :method:`Type::getCollectionValueType() ` +and :method:`Type::getCollectionValueTypes() ` methods. .. _`components-property-info-extractors`: