Skip to content

Result of && is always false #1969

@Tasiobg

Description

@Tasiobg

Hello

Summary of a problem

Please check the code snippet, I think this is a bug otherwise I'm not sure what would be a gracefull way to check if a variable is not the type I was specting.
This error start happenig since I updated to 0.11.3

Code snippet that reproduces the problem

https://phpstan.org/r/4a7ae7b7-9ed1-47c5-920a-314aa4d57eed

Expected output

PHPStan shouldn't report any error.

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