Skip to content

array_shift() is not understood #2611

@szepeviktor

Description

@szepeviktor

Bug report

I think $item contains $collection which is not null.

Call to function is_array() with null will always evaluate to false.

Code snippet that reproduces the problem

https://phpstan.org/r/3e7005bc-8e9c-4955-bacd-f6dad8b11ff0

Expected output

[OK] No errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions