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,
};,
];