Skip to content
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

False positive with try-catch, single statement and type override (0.9.x) #505

Closed
Majkl578 opened this issue Sep 16, 2017 · 4 comments
Closed

Comments

@Majkl578
Copy link
Contributor

The type will never change if exception is thrown. No error with 0.8.5.

https://phpstan.org/r/ce51cd492fbb7bd36538e0f897c23cc0

@adaamz
Copy link
Contributor

adaamz commented Jul 13, 2019

Looks like this is fixed https://phpstan.org/r/e0e5e39a-1bc4-443b-8ba3-3897310fbc72

@ondrejmirtes
Copy link
Member

ondrejmirtes commented Jul 13, 2019 via email

@ondrejmirtes
Copy link
Member

Fixed by: phpstan/phpstan-src#481

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 29, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

3 participants