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

FP: "If condition is always true." with simple string #5370

Closed
voku opened this issue Jul 23, 2021 · 2 comments · Fixed by phpstan/phpstan-src#1542
Closed

FP: "If condition is always true." with simple string #5370

voku opened this issue Jul 23, 2021 · 2 comments · Fixed by phpstan/phpstan-src#1542

Comments

@voku
Copy link
Contributor

voku commented Jul 23, 2021

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/0c622014-5d30-41df-8534-240498b80630

https://3v4l.org/B2OIG

Expected output

non always true error

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

if ($usingPhpStan === true) { echo "kill 🐛"; }

@ondrejmirtes
Copy link
Member

Duplicate of #5317

@ondrejmirtes ondrejmirtes marked this as a duplicate of #5317 Jul 23, 2021
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants