Skip to content

Offset not found on array index despite being marked as optional #8187

@Growiel

Description

@Growiel

Hello,

When I tried the following: https://phpstan.org/r/236889ac-3891-40b1-b5ad-2d5bc41b1fd2

I would not expect to see an error telling me that 'c' doesn't exist, when it actually does.

Same thing happens with a simpler example (no embeded arrays): https://phpstan.org/r/7c8a7a78-3641-4fd9-8bf7-725ed5554db2

Maybe i'm just misunderstanding what the "?" is supposed to do.

Thanks !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions