Skip to content

Detection of unset on associative array element #1707

@michaelzangerle

Description

@michaelzangerle

Summary of a problem or a feature request

It seems like PhpStan does not be aware of calling unset on an associative array element and therefore shows an error when checking the size of the changed array.

Code snippet that reproduces the problem

https://phpstan.org/r/0eb513bd-e2db-4077-a40e-0dbce81ba441

Expected output

No error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions