-
Notifications
You must be signed in to change notification settings - Fork 98
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
Use DTO in a query builder #555
Comments
This should work fine. Have you configured |
Readme states that
|
Yeah, I've added
The first method should have no issue. |
Are you on latest versions of PHPStan and phpstan-doctrine? |
Yeah, tested on the latest version
|
There are many test cases for this scenario starting on this line
I guess you might have to reproduce your issue either in tests here (probably in QueryBuilderGetQueryDynamicReturnTypeExtensionTest), or in a separate repository. |
I'll try that |
Can the following code work without manually defining the return type, i.e adding
/** @var UserDto[] */
?The text was updated successfully, but these errors were encountered: