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
When expecting parameter \Ds\Set<SomeEnum> and calling the function with SomeEnum::SomeCase, there's a report that this is not allowed.
\Ds\Set<SomeEnum>
SomeEnum::SomeCase
It's reported with bleeding edge enabled since 1.10.49.
1.10.49
https://phpstan.org/r/d24e92f2-8c7b-40de-a4b6-ecdf4117b177
I think it should be valid usage, but maybe my snippet is indeed unsafe?
Gave me a sense of security when I did a massive dependencies upgrade
The text was updated successfully, but these errors were encountered:
It seems this is pretty much the same issue as #6433, which is marked as fixed, although the snippet fails with bleeding edge enabled.
Sorry, something went wrong.
No branches or pull requests
Bug report
When expecting parameter
\Ds\Set<SomeEnum>
and calling the function withSomeEnum::SomeCase
, there's a report that this is not allowed.It's reported with bleeding edge enabled since
1.10.49
.Code snippet that reproduces the problem
https://phpstan.org/r/d24e92f2-8c7b-40de-a4b6-ecdf4117b177
Expected output
I think it should be valid usage, but maybe my snippet is indeed unsafe?
Did PHPStan help you today? Did it make you happy in any way?
Gave me a sense of security when I did a massive dependencies upgrade
The text was updated successfully, but these errors were encountered: