Skip to content

Phpstan thinks string is not empty when running strpos  #7166

@simPod

Description

@simPod

Bug report

Phpstan says the !== '' is useless but it is not, the string can be empty https://3v4l.org/3EtlO

Code snippet that reproduces the problem

https://phpstan.org/r/109cdd5b-38e1-4270-80c5-14958f8ac606

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions