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
<?php namespace Foo; class Bar { private \stdClass $test; }
(playground does not yet support 7.4)
7 PHPDoc tag @var for property Foo\Bar::$test with type mixed is not subtype of native type stdClass.
No errors reported.
The text was updated successfully, but these errors were encountered:
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review.
Sorry, something went wrong.
When I add /** @var \stdClass */, the error goes away, but I obviously don't want to have to add these redundant doc comments everywhere...
/** @var \stdClass */
Yes, this is a bug, thank you. Somehow it didn't occur to me to test this scenario in the right rule :)
Fixed, thanks! 89cf4b1
No branches or pull requests
Bug report
Code snippet that reproduces the problem
(playground does not yet support 7.4)
Expected output
No errors reported.
The text was updated successfully, but these errors were encountered: