We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
static
This emits error but shouldn't: https://psalm.dev/r/bf101787cd Notice @return static<U> in ArrayCollection class.
@return static<U>
This does not emit error: https://psalm.dev/r/69290b223c All I did was I replaced static with ArrayCollection (self works too).
ArrayCollection
self
Related to doctrine/collections#211 (comment)
The text was updated successfully, but these errors were encountered:
Yeah, the bug is that @return static in a generic class should return Foo<SomeParam>, but I didn't account for @return static<T>
@return static
Foo<SomeParam>
@return static<T>
Sorry, something went wrong.
Thank you for explanation!
7012bed
No branches or pull requests
This emits error but shouldn't: https://psalm.dev/r/bf101787cd
Notice
@return static<U>
in ArrayCollection class.This does not emit error: https://psalm.dev/r/69290b223c
All I did was I replaced
static
withArrayCollection
(self
works too).Related to doctrine/collections#211 (comment)
The text was updated successfully, but these errors were encountered: