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
When a null comparison is store on a variable, it not considered by PHPSTan.
It's a retry of #800. There is already #647 and #701 about assignments in conditions, but I'm not sure it's related. For my case, it's not directly an assignment but a comparison stored on a boolean variable.
See the sample. If it's indeed the same issue, sorry for that and feel free to close. 👍
Summary of a problem or a feature request
When a
null
comparison is store on a variable, it not considered by PHPSTan.It's a retry of #800. There is already #647 and #701 about assignments in conditions, but I'm not sure it's related. For my case, it's not directly an assignment but a comparison stored on a boolean variable.
See the sample. If it's indeed the same issue, sorry for that and feel free to close. 👍
Code snippet that reproduces the problem
https://phpstan.org/r/24dc69b2-908a-4137-842c-c4880a6d1f59
Expected output
Nothing.
The text was updated successfully, but these errors were encountered: