Skip to content

Offset 1|2 does not exist on array{1?: type, 2?: type} after safety-check by array_key_exists is performed #7763

@janedbal

Description

@janedbal

Bug report

Tested on 1.8.2

Code snippet that reproduces the problem

https://phpstan.org/r/f4e1ed64-c315-4618-94c7-8cda6151dca4

Expected output

No error

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