Generic with abstract type #4610
-
Hi, I'm trying to write an aggregator that takes a number of generic classes and specifies an abstract type as the type of those generics. |
Beta Was this translation helpful? Give feedback.
Answered by
ondrejmirtes
Feb 26, 2021
Replies: 1 comment 1 reply
-
You need Explanation: #4481 (comment) |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
R4c00n
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need
@template-covariant
for that: https://phpstan.org/r/fe153209-1fb8-4898-ae89-d4321ebfa183Explanation: #4481 (comment)