Subclasses of SplObjectStorage, ArrayObject, Collection not considered collection type
TypeHandling::isCollectionType() does not consider inheritance when it comes to the checking it does. Thus a subclass of
SplObjectStorage or an implementation of Doctrine's
Collection interface will not pass the check.