-
-
Notifications
You must be signed in to change notification settings - Fork 863
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
Exceptions thrown are not detected on __invoke method #6233
Comments
This bug report is missing a link to reproduction on phpstan.org. It will most likely be closed after manual review. |
I'm running into the same issue locally but I'm unable to reproduce it on phpstan.org. |
I'd like to try solving this issue @ondrejmirtes, any recommendations ? |
@VincentLanglet Throw points need to be handled better around here https://github.com/phpstan/phpstan-src/blob/d1860cd6ec25b89b78110aa84ccde0a468e9872d/src/Analyser/NodeScopeResolver.php#L1910-L1921 |
Fixed: phpstan/phpstan-src#2502 |
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
gets the error :
Method Container::test() has \Exception in PHPDoc @throws tag but it's not thrown.
Exceptions are not checked in phpstan.org so could not reproduce there.
Expected output
No Error
The text was updated successfully, but these errors were encountered: