Fix bad indices for filtered collection
Fix bad indices for filtered collection

array_filter returns the indices of the original array which
might not be continuous and cause unexpected results when
transforming the Collection using toArray().

mihaeu/dephpend,mihaeu/dephpend