SpecificationLocator::locateSpecifications() should return SpecificationIterator but it doesn't.
It still works because \FilterIterator proxies unknown methods to the decorated iterator (which indeed implements SpecificationIterator), but will fail if any other userland code tries to typehint it as SpecificationIterator.
SpecificationLocator::locateSpecifications()
should returnSpecificationIterator
but it doesn't.It still works because
\FilterIterator
proxies unknown methods to the decorated iterator (which indeed implementsSpecificationIterator
), but will fail if any other userland code tries to typehint it asSpecificationIterator
.