Skip to content

DynamicMethodReturnTypeExtension - Accessing variable initialization information #4374

Discussion options

You must be logged in to vote

Hi, how is MyModel::findBySql typehinted? Ideally it should return MyModel and you'd be done :) Feel free to post the MyModel (and possibly ancestors) to phpstan.org and we'll tag the code correctly so that it just works without an extension.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@EtienneBruines
Comment options

@ondrejmirtes
Comment options

@ondrejmirtes
Comment options

@EtienneBruines
Comment options

@ondrejmirtes
Comment options

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