The issue happened when using ->contains(). Running psalm emitted
InvalidArgument - Argument 1 of Doctrine\ORM\PersistentCollection::contains
expects
TMaybeContained:fn-doctrine\common\collections\readablecollection::contains
as mixed, but … provided.
We should either not define @template TMaybeContained or re-define the psalm docblock from ReadableCollection completely.
Repairing the docblock necessitates an update to the psalm baseline: one "known issue" is no longer an issue and could thus be removed.
See https://github.com/doctrine/collections/issues/368 for the same issue in doctrine/collections which has been fixed there.
The issue happened when using ->contains(). Running psalm emitted
We should either not define @template TMaybeContained or re-define the psalm docblock from ReadableCollection completely.
Repairing the docblock necessitates an update to the psalm baseline: one "known issue" is no longer an issue and could thus be removed.