Skip to content

Strict comparison of multiple arrays #7257

@SendiMyrkr

Description

@SendiMyrkr

Bug report

When i use following code than i get an error message "Strict comparison using === between NEVER and array{0?: int<1, 10>, 1?: int<1, 10>, 2?: int<1, 10>, 3?: int<1, 10>} will always evaluate to false.".

Code snippet that reproduces the problem

https://phpstan.org/r/476727c9-c10c-44d8-b156-1d82a1fe76b6

Expected output

same as here https://phpstan.org/r/f8ec4278-7e06-4521-95ef-39f45a712806

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions