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
Invalid always-true analysis in catch-block with call_user_func inside try-block #4820
Comments
I'd expand the title a bit: PHPStan seems to not expect any excpetion from a called method, even if the method is annotated with |
@malarzm In your case PHPStan is correct. I commented on your code: https://phpstan.org/r/93caf15f-aceb-423e-919b-338e71b5658f |
@ondrejmirtes thanks for the quick reply. Indeed you're right, my bad! :) |
Fixed: phpstan/phpstan-src@54a204e |
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
Code snippet that reproduces the problem
Expected output
The text was updated successfully, but these errors were encountered: