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
while(true)
https://psalm.dev/r/06329b768b
<?php function foo(bool $throw): bool { do { if ($throw) { throw new \Exception(); } return true; } while (true); }
Reported false positive:
ERROR: [InvalidReturnType](https://psalm.dev/011) - 3:28 - Not all code paths of foo end in a return statement, return type bool expected
The text was updated successfully, but these errors were encountered:
I found these snippets:
Psalm output (using commit 5baf85e): ERROR: InvalidReturnType - 3:28 - Not all code paths of foo end in a return statement, return type bool expected
Sorry, something went wrong.
I think this is the same issue as #7842.
This was also fixed by #8929.
No branches or pull requests
https://psalm.dev/r/06329b768b
Reported false positive:
The text was updated successfully, but these errors were encountered: