Closed kor3k closed 2 months ago
Feel free to send a PR in for it. I know the readable interface is relatively new compared to either the adapter here or the collections package as a whole, so it's just one of those cases where things haven't been updated to use it.
i think the CollectionAdapter constructor
should be typehinted to
ReadableCollection
instead ofCollection
.that's what
Doctrine\Common\Collections\Selectable::matching()
is typehinted to as well. and both::slice()
and::count()
used in the adapter come fromReadableCollection
.not a big deal, i don't know if any class actually does implement just
ReadableCollection
and notCollection
, but still.