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
It looks like null checks that happen previous and cause an exit from a function are ignored. i.e. After the null check, the variable is still considered "nullable."
Bug report
It looks like null checks that happen previous and cause an exit from a function are ignored. i.e. After the null check, the variable is still considered "nullable."
Code snippet that reproduces the problem
https://phpstan.org/r/a79d1e2f-932f-4c40-8e92-530baa0a3fb8
Expected output
This should work the same and not require an explicit null check like so,
The text was updated successfully, but these errors were encountered: