Skip to content

Commit 52b8276

Browse files
committed
minor #17883 [PropertyInfo] Mention list pseudo type (alexandre-daubois)
This PR was merged into the 5.4 branch. Discussion ---------- [PropertyInfo] Mention `list` pseudo type Fixes #16072 Commits ------- ec1c6ef [PropertyInfo] Mention `list` pseudo type
2 parents 48e1028 + ec1c6ef commit 52b8276

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

components/property_info.rst

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,15 @@ available), via the :method:`Type::getCollectionKeyTypes() <Symfony\\Component\\
332332
and :method:`Type::getCollectionValueTypes() <Symfony\\Component\\PropertyInfo\\Type::getCollectionValueTypes>`
333333
methods.
334334

335+
.. note::
336+
337+
The ``list`` pseudo type is returned by the PropertyInfo component as an
338+
array with integer as the key type.
339+
340+
.. versionadded:: 5.4
341+
342+
The support for the ``list`` pseudo type was introduced in Symfony 5.4.
343+
335344
.. _`components-property-info-extractors`:
336345

337346
Extractors
@@ -436,14 +445,14 @@ with the ``property_info`` service in the Symfony Framework::
436445

437446
// the `serializer_groups` option must be configured (may be set to null)
438447
$serializerExtractor->getProperties($class, ['serializer_groups' => ['mygroup']]);
439-
448+
440449
If ``serializer_groups`` is set to ``null``, serializer groups metadata won't be
441450
checked but you will get only the properties considered by the Serializer
442451
Component (notably the ``@Ignore`` annotation is taken into account).
443452

444453
.. versionadded:: 5.2
445454

446-
Support for the ``null`` value in ``serializer_groups`` was introduced in Symfony 5.2.
455+
Support for the ``null`` value in ``serializer_groups`` was introduced in Symfony 5.2.
447456

448457
DoctrineExtractor
449458
~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)