Bug #27825

TypeHandling should use the Collection interface as collection type

Added by Stephan Schuler over 10 years ago. Updated about 10 years ago.

Status:
Closed
Priority:
Must have
Category:
Utility
Start date:
2011-07-04
Due date:
% Done:

0%

Estimated time:
PHP Version:
Has patch:
Complexity:

Description

Only the following values are possible collection types that can have an element type annotation for children at the moment:
  • array
  • \ArrayObject
  • \SplObjectStorage
  • \Doctrine\Common\Collections\ArrayCollection

As a \Doctrine\Common\Collections\PersistentCollection is no \Doctrine\Common\Collections\ArrayCollection but implements the \Doctrine\Common\Collections\Collection interface as well, FLOW3 should use the Collection interface for determining if its a collection type.


Related issues

Has duplicate TYPO3.Flow - Bug #29419: It is impossible to use the Collection interface in "type hints"ResolvedKarsten Dambekalns2011-09-01

Actions

Also available in: Atom PDF