-
Notifications
You must be signed in to change notification settings - Fork 112
Return a generic array in Query #385
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
Conversation
| */ | ||
| final class Query extends AbstractQuery | ||
| { | ||
| public const HYDRATE_OBJECT = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was needed to fix:
------ ------------------------------------------------
Line stubs/ORM/Query.stub
------ ------------------------------------------------
23 PHPDoc tag @return contains unresolvable type.
------ ------------------------------------------------
| { | ||
| assertType( | ||
| 'mixed', | ||
| 'array<(int|string)>', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH, I'm not really sure about these changes but all the tests pass now 🙄
| php vendor/bin/phpstan analyse -l 8 -c phpstan.neon src tests | ||
|
|
||
| .PHONY: phpstan-generate-baseline | ||
| .PHONY: phpstan-generate-baselmake ine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
| namespace Doctrine\ORM; | ||
|
|
||
| /** | ||
| * @template TKey as array-key |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This might be conflicting with the solution propsed in #384
|
Superseded by 4490e56 |
Fixes #377.
Same as psalm/psalm-plugin-doctrine#115, but for PHPStan 🙂