Skip to content

array_udiff callback parameter types are not supported #6105

@udavka

Description

@udavka

Feature request

array_udiff callback parameter types are not supported, mixeds are required in the maximal validation mode.

For example, in this case: https://phpstan.org/r/9509075f-ec61-4eba-941d-a8835055f0d1 it says "Parameter #3 $data_comp_func of function array_udiff expects callable(mixed, mixed): int, Closure(int, int): int<-1, 1> given.".

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