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
phpstan 0.12.33
Following code throws an error
https://phpstan.org/r/079841f1-1961-44a4-acfa-c8a308fea2fc
<?php declare(strict_types = 1); trait Foo { public function test(): void { if (get_class($this) === HelloWorld::class) { echo "OK"; } if (get_class($this) === OtherClass::class) { echo "OK"; } } } class HelloWorld { use Foo; public function bar(): void { $this->test(); } } class OtherClass { use Foo; public function bar(): void { $this->test(); } }
No error
Might be related to #3632
The text was updated successfully, but these errors were encountered:
Agreed, issues like these shouldn't be reported in traits.
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.
Successfully merging a pull request may close this issue.
Bug report
phpstan 0.12.33
Following code throws an error
Code snippet that reproduces the problem
https://phpstan.org/r/079841f1-1961-44a4-acfa-c8a308fea2fc
Expected output
No error
Additional notes
Might be related to #3632
The text was updated successfully, but these errors were encountered: