-
Notifications
You must be signed in to change notification settings - Fork 99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Imperfect QueryBuilderType detection returned by other method call #499
Comments
Added object hooking support in phpstan/phpstan-src#2761 |
POC in #500 |
This is not issue anymore, it solved by #500 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
See current behaviour:
This is because
QueryBuilderMethodDynamicReturnTypeExtension
detects only calls overQueryBuilder
(second case) and optionally dives into the initial "other method" call to detect what happened there.This could be fixed if I added some
DynamicMethodReturnTypeExtension
that is hooked toobject
and decided based on its return type (QueryBuilder) ifOtherMethodQueryBuilderParser
can be used to infer the enhancedQueryBuilderType
. But no such thing is possible (hookingDynamicMethodReturnTypeExtension
to any class).Would you accept such PRs to accomplish this?
The text was updated successfully, but these errors were encountered: