Skip to content

False positive "Call to function is_array() with mixed will always evaluate to false" #6443

@gilbertsoft

Description

@gilbertsoft

Bug report

Looks PHPStan is reporting a false positive "Call to function is_array() with mixed will always evaluate to false" in some circumstances.

Code snippet that reproduces the problem

https://phpstan.org/r/f4b7baf4-e5ac-4cb5-9f46-5dabb7296eb7

Expected output

No error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions