Skip to content

substr - Strict comparison using === between string and false will always evaluate to false. #6939

@williamdes

Description

@williamdes

Bug report

It will return false, just see https://3v4l.org/jO0n4

https://phpstan.org/r/0c4f9d72-05e5-4403-922f-95564611c3ed

Code snippet that reproduces the problem

https://3v4l.org/jO0n4

Expected output

No error

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

Saves me every day !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions