InvalidArgument in case of more specific argument in child class constructor #7816
-
https://psalm.dev/r/a6deb3aca7 Expected: no issue Actual: Why psalm is considered this case as an error? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
probably a bug |
Beta Was this translation helpful? Give feedback.
-
Answered in the issue: #7821 (comment) TLDR: |
Beta Was this translation helpful? Give feedback.
Answered in the issue: #7821 (comment)
TLDR:
@template-covariant
fixes an error https://psalm.dev/r/cc94a91509