Symfony-coding-standard icon indicating copy to clipboard operation
Symfony-coding-standard copied to clipboard

BlankLineBeforeReturn miss reporting inside closure

Open CarsonF opened this issue 8 years ago • 0 comments

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.

CarsonF avatar Jul 28 '17 16:07 CarsonF