Skip to content

False positive: "Right side of && is always true." #8555

@janschoenherr

Description

@janschoenherr

Bug report

As can be seen in the reproduction link, phpstan reports a "Right side of && is always true." wrongly.

Code snippet that reproduces the problem

https://phpstan.org/r/04f6bdbe-0756-456a-bcdf-a37ca90b1a73

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

PHPStan is great and found lots of issues with our codebase! Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions