-
-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
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 8.0 - throw statement is now throw expression, it can throw at any point #8084
Comments
phpstan understands throw expressions already: this seems to be caused by
is this as simple as |
#8164 is basically the same issue |
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. |
Bug report
Version
https://wiki.php.net/rfc/throw_expression
Code snippet that reproduces the problem
https://phpstan.org/r/e01eb1f3-1bf1-465e-85b6-f66470182d50
Expected output
If an exception is thrown, processing is interrupted, but if not, processing should be assumed to continue and the type should be correctly guessed
In this case,
array_shift($params)
returnsstring|null
Did PHPStan help you today? Did it make you happy in any way?
I <3 PHPStan!
The text was updated successfully, but these errors were encountered: