Skip to content

Boolean match in strict binary operands mode emits an error #8562

@danog

Description

@danog

https://psalm.dev/r/e58299f88a

ERROR: RedundantIdentityWithTrue - a.php:8:13 - The "=== true" part of this comparison is redundant (see https://psalm.dev/228)
            $item instanceof a => 'a',


ERROR: RedundantIdentityWithTrue - a.php:9:13 - The "=== true" part of this comparison is redundant (see https://psalm.dev/228)
            $item instanceof b => 'b',

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