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
Caught class ParseError is not an exception #3690
Comments
Maybe related
|
Yes, this is because class ParseError extends CompileError {
} Because CompileError isn't available in PHP < 7.3, to prevent errors this code in PhpStormStubsSourceStubber modifies the stub to this: class ParseError {
} Of course it should change the |
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. |
https://phpstan.org/r/fdea8bde-f77f-4362-b49c-9055a2de728f
I'm not sure why but PhpStan reports catching ParseError on php < 7.3
The text was updated successfully, but these errors were encountered: