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
If I check variable type in if statement directly type is infern correct, but when do it early and assign result to variable and check it late, then type is wrong.
Bug report
If I check variable type in
if
statement directly type is infern correct, but when do it early and assign result to variable and check it late, then type is wrong.Code snippet that reproduces the problem
https://phpstan.org/r/c9d5a01d-59f6-46b9-826c-6159e5a4ece3
Expected output
No error
The text was updated successfully, but these errors were encountered: