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

Wrong: Strict comparison using === between '0' and non-falsy-string will always evaluate to false. #11035

Closed
sebbio opened this issue May 15, 2024 · 0 comments · Fixed by phpstan/phpstan-src#3081
Labels
Milestone

Comments

@sebbio
Copy link

sebbio commented May 15, 2024

Bug report

Strict comparison using === between '0' and non-falsy-string will always evaluate to false.

https://phpstan.org/r/c5406c87-dd8c-4e83-950a-4df5d932eee8

Code snippet that reproduces the problem

c5406c87-dd8c-4e83-950a-4df5d932eee8

Expected output

Strict comparison using === between '0' and non-falsy-string will always evaluate to false.

Did PHPStan help you today? Did it make you happy in any way?

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants