Skip to content

isset with possible null value is expected to always be true #2869

@eigan

Description

@eigan

Bug report

array_key_exists is true so there is something at the index. PHPStan now insist that the isset call is not needed. But the value can still be NULL.

Code snippet that reproduces the problem

https://phpstan.org/r/0fd29840-3c75-4f92-89ec-c803dce84a05

Expected output

There should be no error about isset is always true.

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