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
I was experimenting with generic traits and it looks like I found a bug, see works() vs doesNotWork() methods.
works()
doesNotWork()
https://phpstan.org/r/465f4f45-2dc7-4406-b82c-a21926d1bdc5
57 Dumped type: int
and there is no missingType.parameter error.
missingType.parameter
Without PHPStan, I could even have a chance to play with generics at all in PHP.
The text was updated successfully, but these errors were encountered:
Essentially a duplicate of #10914
Sorry, something went wrong.
No branches or pull requests
Bug report
I was experimenting with generic traits and it looks like I found a bug, see
works()
vsdoesNotWork()
methods.Code snippet that reproduces the problem
https://phpstan.org/r/465f4f45-2dc7-4406-b82c-a21926d1bdc5
Expected output
and there is no
missingType.parameter
error.Did PHPStan help you today? Did it make you happy in any way?
Without PHPStan, I could even have a chance to play with generics at all in PHP.
The text was updated successfully, but these errors were encountered: