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
Covariance is not working with the top type mixed.
mixed
Flat: https://phpstan.org/r/6d2255ee-db1f-4a6e-ab52-b51c52627bdb
Nested: https://phpstan.org/r/1b218289-57ed-4243-a2b7-02fdf08c0fba
This works as expected: https://phpstan.org/r/f921071b-bba9-49f9-a424-728bfe611090
Psalm handles it as expected: https://psalm.dev/r/68a94c9e89
No errors.
PHPStan is one of the coolest things that happened to PHP :)
The text was updated successfully, but these errors were encountered:
Fixed: phpstan/phpstan-src@9f12f0f
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
No branches or pull requests
Bug report
Covariance is not working with the top type
mixed
.Code snippet that reproduces the problem
Flat:
https://phpstan.org/r/6d2255ee-db1f-4a6e-ab52-b51c52627bdb
Nested:
https://phpstan.org/r/1b218289-57ed-4243-a2b7-02fdf08c0fba
This works as expected:
https://phpstan.org/r/f921071b-bba9-49f9-a424-728bfe611090
Psalm handles it as expected:
https://psalm.dev/r/68a94c9e89
Expected output
No errors.
Did PHPStan help you today? Did it make you happy in any way?
PHPStan is one of the coolest things that happened to PHP :)
The text was updated successfully, but these errors were encountered: