We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
array_udiff
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.".
Parameter #3 $data_comp_func of function array_udiff expects callable(mixed, mixed): int, Closure(int, int): int<-1, 1> given.
The text was updated successfully, but these errors were encountered:
This is solvable by writing array_udiff stub here: https://github.com/phpstan/phpstan-src/blob/master/stubs/arrayFunctions.stub
Sorry, something went wrong.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Successfully merging a pull request may close this issue.
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.
".The text was updated successfully, but these errors were encountered: