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

Replace unwrapped function with a non modifying function when used as a first class callable #5

Merged
merged 1 commit into from
Jun 29, 2024

Conversation

gehrisandro
Copy link
Collaborator

This PR fixes https://github.com/pestphp/pest-plugin-mutate/issues/4

Does the following mutation:

array_map(trim(...), $array);

to

array_map(fn($value) => $value, $array);

@gehrisandro gehrisandro merged commit 547dcee into 2.x Jun 29, 2024
28 checks passed
@nunomaduro nunomaduro deleted the fix-unwrap-mutators-on-first-class-callables branch September 8, 2024 22:18
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.

UnwrapTrim crashes on first class callable syntax
1 participant