collections icon indicating copy to clipboard operation
collections copied to clipboard

Collections Abstraction Library

Results 51 collections issues
Sort by recently updated
recently updated
newest added

I noticed that some methods of `Collection` return `false` on failure. Specifically `first()`, `last()`, `current()`, `next()` and `indexOf()`. It would be better in my opinion to return `null` instead. Since...

Enhancement
BC break

Hey there, as of now, I do only know about `Selectable#matching` returns `Collection` (which also includes `Selectable`). So when we use this in our projects, we almost always do also...

Currently, the only interface we have is Collection, which has both getter methods and mutator methods. Because of that, its generic type is invariant. In many cases, we might want...

Hello. I am wondering why does `\Doctrine\Common\Collections\Expr\ExpressionVisitor::dispatch` restricts `$expr` to be instance of predefined classes. Doesn't it violate key principles of visitor pattern which leverage polymorphism and double dispatch in...

Hi! How can i override ClosureExpressionVisitor::getObjectFieldValue's method? I want to use PropertyAccessor component of Symfony for getting value but for some reason everybody at Doctrine\Common\Collections\Expr calls ClosureExpressionVisitor::getObjectFieldValue instead of self::getObjectFieldValue...

I've run into a situation where I'm using ArrayCollection to filter some objects using Criteria::orderBy(). Assume these objects have a private property 'foo', and a public method 'foo()' which returns...

This code is valid for plain array_filter for the psalm. https://psalm.dev/r/31351f98b0 But if you try to do a similar thing with the collection psalm will tell it is not valid....

I have a Custom collection class that extends Doctrine ArrayCollection, which has template annotations out of the box. The ArrayCollection class has a filter method which I call from my...

Running a matching over a criteria lead me to an error that I cannot access the field. I then discovered the run lacks checking the object for methods with the...