Covariant generic return types #5841
-
Hi, thanks for this great project. I am trying to provide proper types in one of my projects (webonyx/graphql-php#991), but have an issue with correctly typing a method that clones a value: I have boiled this down to a minimal example here: https://phpstan.org/r/f64c26bf-9543-4f57-9024-a415d78b2cd2 After digging around the issues, I found that Putting it into the classes PHPDoc also does not lead to the desired result: https://phpstan.org/r/5b889879-f8ce-4ea0-874a-264effe57895 How can this be done? Can it be done at all? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is a bug, please open an issue. |
Beta Was this translation helpful? Give feedback.
This is a bug, please open an issue.