Skip to content
Discussion options

You must be logged in to vote

Unfortunately this isn't currently possible. Feel free to open a feature request with a proposed syntax. Essentially you'd somehow have to define @template dynamically for each callable argument, so that your case works in general: https://phpstan.org/r/84dfb636-f7b3-4746-b61b-5eb1a2f5a683

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by mathroc
Comment options

You must be logged in to vote
1 reply
@ondrejmirtes
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
3 participants