Skip to content

Semicolon after match expression as array value #164

@eltorjmen

Description

@eltorjmen

Using the match expression as an array value adds a semicolon after the match closing brace

$test  = 'a';
$array = [
    'value' => match ($test) {
        'a'     => 1,
        'b'     => 2,
    }
];

format result

$test  = 'a';
$array = [
    'value' => match ($test) {
        'a'     => 1,
        'b'     => 2,
    };,
];

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions