You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPStan does not yet check what exceptions can be thrown out of the try block. If you throw something that isn't an exception, the variable might not exist: https://3v4l.org/63iZP
Bug report
Code snippet that reproduces the problem
I have an error with
https://phpstan.org/r/b33506ff-66aa-45c9-8d81-db3fa4227b0b
The following code is working https://phpstan.org/r/f04ed63c-88c0-4169-9ed0-97b1f92daa92
But when I throw an exception inside the
try
, it's not working anymore.Expected output
No error
The text was updated successfully, but these errors were encountered: