Skip to content

v1.7.0 - trailing commas in match expressions

Compare
Choose a tag to compare
@krzysztofrewak krzysztofrewak released this 12 Jul 07:12
· 30 commits to main since this release
cdca8c1

As described in #39 and implemented in #79, with this release this:

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

will be transformed to this:

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