Skip to content

Initialized array offset reported as possibly non-existent #12805

@tolry

Description

@tolry

Bug report

Looking at the reproducer, after upgrading from 2.1.8 to 2.1.11 we get the offset may not exist message.

Code snippet that reproduces the problem

https://phpstan.org/r/04f49ec6-ac43-4873-8af7-856c6f24246d

Expected output

no warning should be emitted

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