Skip to content

non-strict comparison with union should error #8800

@staabm

Description

@staabm

Feature request

I think we should report 'always false' for non-strict comparison with int-union and constant int.
(same we already do for the strict-comparison case)

https://phpstan.org/r/8504bb1e-7116-4724-a881-ca5269be1273

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions