I have an error when calling a templated function expecting collections inside a trait, here is the minimal reproducer I could make: https://psalm.dev/r/fac6728ba5
In this example a Vector is used but it behaves the same for other collections like Doctrine collections
I have an error when calling a templated function expecting collections inside a trait, here is the minimal reproducer I could make: https://psalm.dev/r/fac6728ba5
In this example a Vector is used but it behaves the same for other collections like Doctrine collections
However the same code using an array doesn't raise any error: https://psalm.dev/r/4efb1ca461
I'm not sure if this is a bug or a misunderstanding on my part, please tell me if there's another way to achieve the desired result.
Thank you