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

#39 - trailing commas for match expressions #79

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

krzysztofrewak
Copy link
Member

With this pull request this:

return match ($i) {
    1 => 1,
    2 => 3,
    default => 0
};

will be transformed to this:

return match ($i) {
    1 => 1,
    2 => 3,
    default => 0,
};

This should finally close #39.

@krzysztofrewak krzysztofrewak merged commit cdca8c1 into main Jul 12, 2022
@krzysztofrewak krzysztofrewak deleted the #39-trailing-commas branch July 12, 2022 07:11
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.

Enforce trailing commas in match-cases
3 participants