Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Strict comparison for class properties #2548

@captain-igloo

Description

@captain-igloo

Bug report

I'm getting "Strict comparison using === between null and '' will always evaluate to false" for a comparison that can evaluate to true.

Code snippet that reproduces the problem

https://phpstan.org/r/da4c3631-4a96-4fd8-9a5f-9573c427e35a

Expected output

I would expect no errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions