Skip to content

list type lost in for loop #12807

@staabm

Description

@staabm

Bug report

we should not loose the list state after a for-loop which only overrides pre-existing offsets

similar to #12274

Code snippet that reproduces the problem

https://phpstan.org/r/09e672bf-f31b-4761-a5ec-660207c37f8d

Expected output

no error

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions