Inheritance and collections — InvalidArgument
errors
#10293
Unanswered
VBelozyorov
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello
Please look at this example: https://psalm.dev/r/7b04741f46
I saw that Animal-Cat-Dog example in the docs about template covariance and I think I understood it. But I still cannot figure out how to fix my example.
Some of my attempts looked like these:
and unfortunately it didn't help me much.
What can I do with those
InvalidArgument
errors in this case (except of suppressing or adding to the baseline)?Beta Was this translation helpful? Give feedback.
All reactions