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
It seems that @phpstan-impure does not work (or is not implemented) for static methods:
@phpstan-impure
<?php declare(strict_types = 1); class HelloWorld { public function doStuff(): int { if (self::getBool()) { return 1; } if (self::getBool()) { return 2; } return 3; } /** @phpstan-impure */ private static function getBool(): bool { return mt_rand(0, 1) === 0; } }
https://phpstan.org/r/28a8013d-8b55-4a27-83c6-b739ebd94ef3
No error.
The text was updated successfully, but these errors were encountered:
Fixed: phpstan/phpstan-src@1182199
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
It seems that
@phpstan-impure
does not work (or is not implemented) for static methods:https://phpstan.org/r/28a8013d-8b55-4a27-83c6-b739ebd94ef3
Expected output
No error.
The text was updated successfully, but these errors were encountered: