Skip to content

Reflected class method returning type #8993

Discussion options

You must be logged in to vote

This feature could help you to do this in PHPDocs once implemented: https://twitter.com/OndrejMirtes/status/1606017239882338304

For now, you can achieve the same thing with: https://phpstan.org/developing-extensions/dynamic-return-type-extensions

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rogermedico
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