Skip to content

Parameter $callback of function array_map expects (callable(mixed): mixed)) #12317

@psprokofiev

Description

@psprokofiev

Bug report

Array Map requires mixed as a callable argument

Code snippet that reproduces the problem

https://phpstan.org/r/31bce9df-d1d8-4647-a763-fd6535709243

Expected output

PHPStan shouldn't detect any issue

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