Skip to content

Falsey scope of BooleanOr left expr not considered for NotIdentical right expr #6696

@herndlm

Description

@herndlm

Bug report

This is just the bug that is behind phpstan/phpstan-webmozart-assert#33 as Ondrej mentioned there.

Fyi I know where to look and I think the fix should be trivial (at least I hope so), will try to open a PR for this soon.

Code snippet that reproduces the problem

https://phpstan.org/r/6485efa1-485c-4abb-8611-155ce3a05e74

Expected output

No errors.

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

Just updated PHPStan in some projects, which resulted in 2 baseline error removals. yay :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions