Skip to content

non-empty-array lost, after array re-initialization  #6961

@staabm

Description

@staabm

Bug report

Code snippet that reproduces the problem

https://phpstan.org/r/778e9020-24d2-43ae-b939-824e943e5c89

Expected output

no error

Inspired by https://github.com/phpstan/phpstan-src/pull/1154/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions