Skip to content

Call to function array_key_exists() with int and array will always evaluate to true #3766

@ossinkine

Description

@ossinkine

Bug report

False-positive alerts when using array_key_exists function.

Code snippet that reproduces the problem

https://phpstan.org/r/ce4a9861-014d-4ccc-84db-0e8d9ab47e34

Expected output

Expecting no alerts

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions