-
Hi everyone, Please consider the following situation I've been hitting my head against a wall in vain for several hours struggling to understand the difference between I've read the "What’s Up With @template-covariant?" blog post but I still can't apply its points to this situation :( I'd appreciate it if someone shared an idea of what is wrong here. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Alright, the problem is solved by defining ArrayStrategy as a generic type: |
Beta Was this translation helpful? Give feedback.
Alright, the problem is solved by defining ArrayStrategy as a generic type:
https://phpstan.org/r/17fc159d-467b-4ea9-a944-105fea139a97