Skip to content

phpstan does not recognize keys after array literal merge correctly #13805

@srebb

Description

@srebb

Bug report

phpstan should not report an error, since the keys are preserved and the needed key definitly exists due to MinimalRowDefinition

Code snippet that reproduces the problem

https://phpstan.org/r/1a11403d-e08d-4194-a516-7ead122e35d3

Expected output

phpstan should not report an error

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

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions