Skip to content

RedundantCondition error while not redundant after use of array_shift #3941

@tvbeek

Description

@tvbeek

A check on the emptiness of the array is marked redundant while it can be empty after the use of array_shift.

I provided a small example to demonstrate the issue.

https://psalm.dev/r/a33f3347d3

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions