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

Strict comparison using === between string and false will always evaluate to false. #12309

Open
dimadeush opened this issue Dec 21, 2024 · 0 comments · May be fixed by phpstan/phpstan-src#3749
Labels
Milestone

Comments

@dimadeush
Copy link

Bug report

It seems we have an issue with php doc again.

method mb_convert_encoding can return array|string|false
https://www.php.net/manual/en/function.mb-convert-encoding.php

Code snippet that reproduces the problem

https://phpstan.org/r/47a773fb-8e44-44fe-8efc-9c4768513875

Expected output

No error

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

No response

@ondrejmirtes ondrejmirtes added this to the Easy fixes milestone Dec 21, 2024
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