Huh, I'm confused by this:
Cannot call a non-mutation-free method Doctrine\Common\Collections\Criteria::orderBy from a pure context
I've marked this method as @psalm-external-mutation-free because it mutates its own state only. The object is created inside the pure function and never will be user outside of it. Shouldn't @psalm-external-mutation-free be sufficient here? I don't understand how to fix it.
Huh, I'm confused by this:
Cannot call a non-mutation-free method Doctrine\Common\Collections\Criteria::orderBy from a pure context
I've marked this method as@psalm-external-mutation-free
because it mutates its own state only. The object is created inside the pure function and never will be user outside of it. Shouldn't@psalm-external-mutation-free
be sufficient here? I don't understand how to fix it.