Skip to content

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

@dimadeush

Description

@dimadeush

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions