Skip to content

"Offset decimal-int-string does not exist on array<string, string>." false positive #14758

@staabm

Description

@staabm

Bug report

when running the snippet with reportUnsafeArrayStringKeyCasting beeing null, we should not error.

Code snippet that reproduces the problem

https://phpstan.org/r/116f6e52-8e55-4db4-afac-1b1decbb0e0d

Expected output

no error on line 9

Did PHPStan help you today? Did it make you happy in any way?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions