Skip to content

Fix array_filter narrowing with explicit null callback #1085

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

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Mar 18, 2022

Turns out this is not supported and even throws a warning in PHP < 8. This change just removes the handling of such cases.

See #1077 (comment) / #1077 (comment) and https://3v4l.org/Cj17A

@herndlm
Copy link
Contributor Author

herndlm commented Mar 18, 2022

Wait, what am I doing. My 3v4l link actually shows that it works since PHP 8 but only handles the values, as I initially expected in the linked PR :P

move along, nothing to see here.

@herndlm herndlm closed this Mar 18, 2022
@herndlm herndlm deleted the fix-array-filter-narrowing-with-explicit-null-callback branch March 18, 2022 21:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant