+
Skip to content

array keys type is lost through callable function call #8683

@Geekimo

Description

@Geekimo

Bug report

We are currently facing an issue with the following code.
We are loosing the array keys through the function which calls our callable.
The value type is ok.

Code snippet that reproduces the problem

https://phpstan.org/r/3242b627-8e7a-4b49-b863-d1ed2a8abe62

Expected output

There should be no error.

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

Everyday. It helps us keep our code safe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载