Skip to content
New issue

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

Support more array_***() functions with callbacks #7707

Open
udavka opened this issue Jul 27, 2022 · 0 comments
Open

Support more array_***() functions with callbacks #7707

udavka opened this issue Jul 27, 2022 · 0 comments

Comments

@udavka
Copy link

udavka commented Jul 27, 2022

Feature request

As was requested in #6105 and fixed in phpstan/phpstan-src#1407, typed parameters in the array_udiff() callback are supported now. Thank you very much.

But PHP has many such weird functions:

  • array_diff_uassoc
  • array_diff_ukey
  • array_intersect_uassoc
  • array_intersect_ukey
  • array_udiff_assoc
  • array_udiff_uassoc
  • array_uintersect_assoc
  • array_uintersect_uassoc
  • array_uintersect

Probably nobody uses them, but they are anyway not supported by PHPStan: https://phpstan.org/r/b2be99b5-6627-489c-b18b-9a56748a8d75

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants