-
Hi again! I'm trying to annotate the type of an arrow function argument but I can't figure out how to do it, the same works well with a "full" function : https://phpstan.org/r/e9fef6fc-e017-4f28-a811-617f69b8743f any idea what I'm doing wrong? ps: In this simplified example I could use a native type hint, but I'm trying to do that to annotate a generic type |
Beta Was this translation helpful? Give feedback.
Answered by
canvural
Mar 13, 2022
Replies: 1 comment 1 reply
-
Currently you can't. AFAIK PHPStan does not support adding docblocks to closures. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
mathroc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently you can't. AFAIK PHPStan does not support adding docblocks to closures.