Skip to content

0.11.2 -> 0.11.3 : "result of || is always true" #1966

@Minishlink

Description

@Minishlink

Hello,

Summary of a problem or a feature request

This line triggers result of || is always true on 0.11.3 but not on 0.11.2. (see Travis job)
This could be linked to issue #1377
It looks like this happens when there is two || in a condition.

Code snippet that reproduces the problem

https://phpstan.org/r/063396b9-c2a4-46fa-9b73-777c46503ab2

Expected output

PHPStan shouldn't report any error. Or I may be wrong somewhere?

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