SlevomatCodingStandard.Functions.RequireTrailingCommaInCall doesn't report missing commas if the last param is array function
sampsasaarela opened this issue · comments
Sampsa Saarela commented
Seems that SlevomatCodingStandard.Functions.RequireTrailingCommaInCall
doesn't report missing commas if the last param is an array function.
For example, this doesn't report error:
$this->myFunction(
$channel,
'request',
fn ($m) => $m['param]
);
but this report
$this->myFunction(
$channel,
'request',
);
$this->myFunction(
$channel,
'request',
function () {
// test
}
);
Jaroslav Hanslík commented
Thank you for your report.
Fixed in 8d0f603