Skip to content

Commit e52b7d8

Browse files
committed
Improved the explanation
1 parent b4427d2 commit e52b7d8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

components/property_info.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -318,8 +318,9 @@ this returns ``true`` if:
318318
is ``array``;
319319
* The mutator method the property is derived from has a prefix of ``add``
320320
or ``remove`` (which are defined as the list of array mutator prefixes);
321-
* The phpDocumentor annotation is of type "collection" (e.g.
322-
``@var Iterator<DateTime>``, ``@var \Iterator<integer,string>``, etc.)
321+
* The `phpDocumentor`_ annotation is of type "collection" (e.g.
322+
``@var SomeClass<DateTime>``, ``@var SomeClass<integer,string>``,
323+
``@var Doctrine\Common\Collections\Collection<App\Entity\SomeEntity>``, etc.)
323324

324325
.. versionadded:: 4.2
325326

@@ -497,3 +498,4 @@ service by defining it as a service with one or more of the following
497498
.. _`symfony/serializer`: https://packagist.org/packages/symfony/serializer
498499
.. _`symfony/doctrine-bridge`: https://packagist.org/packages/symfony/doctrine-bridge
499500
.. _`doctrine/orm`: https://packagist.org/packages/doctrine/orm
501+
.. _`phpDocumentor`: https://www.phpdoc.org/

0 commit comments

Comments
 (0)