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

Add new MatchArmRemoval mutator #1744

Merged
merged 1 commit into from
Oct 18, 2022
Merged

Add new MatchArmRemoval mutator #1744

merged 1 commit into from
Oct 18, 2022

Conversation

sidz
Copy link
Member

@sidz sidz commented Oct 16, 2022

This PR:

Mutates:

match ($x) {
-   'cond1', 'cond2' => false,
+  'cond2' => false,
    2 => null,
    default => throw new \Exception(),
};
match ($x) {
-   'cond1', 'cond2' => false,
+  'cond1' => false,
    2 => null,
    default => throw new \Exception(),
};
match ($x) {
-   'cond1', 'cond2' => false,
    2 => null,
    default => throw new \Exception(),
};
match ($x) {
   'cond1', 'cond2' => false,
-    2 => null,
    default => throw new \Exception(),
};
match ($x) {
   'cond1', 'cond2' => false,
    2 => null,
-    default => throw new \Exception(),
};

@sidz sidz added the Mutator label Oct 16, 2022
Copy link
Member

@maks-rafalko maks-rafalko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 would you mind update the docs?

@sidz
Copy link
Member Author

sidz commented Oct 17, 2022

Done

@sidz sidz merged commit 4053dfd into master Oct 18, 2022
@sidz sidz deleted the add-match-arm-mutator branch October 18, 2022 17:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants