Skip to content
Discussion options

You must be logged in to vote

Hi,

For this example adding /** @return class-string<User> */ to the getClass works: https://phpstan.org/r/7250f57e-96dc-4905-85df-eccd245265fd

Replies: 2 comments

Comment options

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

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