Skip to content

Forward methods on proxied classes to the real class #4230

Discussion options

You must be logged in to vote

Hi, you don't actually need to write an extension for this case. You can combine generics with @mixin annotation like this: https://phpstan.org/r/3d8bc66a-df60-45e1-a8b7-76120dd68441

Docs: https://phpstan.org/writing-php-code/phpdocs-basics#mixins

Replies: 2 comments

Comment options

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

This discussion was converted from issue #4230 on December 14, 2020 09:15.