Skip to content

Call to function is_string() with string|false will always evaluate to false. #7773

@stingray-11

Description

@stingray-11

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/2c774269-8a82-40b0-af4f-67b1b8318857

Expected output

There should not be any errors.

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

This seems to be a similar issue as #6443 which was closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions