Skip to content

How to type hint a callable? #4520

Discussion options

You must be logged in to vote

Hi, this is not yet supported, you'd need @param for that. What you currently did is to inform PHPStan what happens when you call the callback: https://phpstan.org/r/21207869-f1af-4499-a6e7-fdccf6fec28a

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ondrejmirtes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Support
Labels
None yet
2 participants