Skip to content

Array iterated over by ref does not understand it's being overwritten #1940

@ondrejmirtes

Description

@ondrejmirtes

Summary of a problem or a feature request

Array iterated over by ref does not understand it's being overwritten

Code snippet that reproduces the problem

https://phpstan.org/r/5e818c3c679f12f61ae12f068b46b97f

Expected output

No errors

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