Skip to content

Wrong types in callbable for array_ functions is not reported #3883

@BackEndTea

Description

@BackEndTea

Bug report

arguments passed to a callback in array_* functions are not validated.

Code snippet that reproduces the problem

https://phpstan.org/r/6882a052-d9ab-4882-bae8-f38962184a94

Expected output

I'd expect to see the same error on the callback for array_ functions as when invoking the callable directly.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions