Skip to content

array key type not being checked for validity #3753

@Almamu

Description

@Almamu

Bug report

Array keys in typehints are not being checked for validity

Code snippet that reproduces the problem

https://phpstan.org/r/465607c6-3434-4b3f-bfbe-9add36193243

Expected output

I expected PHPStan to complain about the array key not being integer or string, in fact other tools (like phpdocumentor) do complain about it

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions