Symfony-coding-standard
Symfony-coding-standard copied to clipboard
BlankLineBeforeReturn miss reporting inside closure
This gives an error:
$arr = [];
$func = function ($item) { return $item['foo']; };
This works fine:
$arr = [];
$func = function ($item) { return $item['foo']; };
Neither should matter as the return is inside the closure scope.