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
https://psalm.dev/r/6e69234550
The text was updated successfully, but these errors were encountered:
I found these snippets:
<?php $exception = new \Exception(); throw ($exception->getPrevious() ?? $exception);
Psalm output (using commit fe97aa0): ERROR: UnusedMethodCall - 5:20 - The call to Exception::getPrevious is not used
Sorry, something went wrong.
Since it works with return (https://psalm.dev/r/775f669643) it's likely a variation of the #5540
return
<?php function f(): Throwable { $exception = new \Exception(); return ($exception->getPrevious() ?? $exception); }
Psalm output (using commit fe97aa0): No issues!
517b203
No branches or pull requests
https://psalm.dev/r/6e69234550
The text was updated successfully, but these errors were encountered: