Skip to content

array_shift/condition is assumed wrongly as always true #7699

@mvorisek

Description

@mvorisek

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/bc481289-1490-48a0-9305-f96645848519

https://3v4l.org/40nH0

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