Skip to content

BlankLineBeforeReturn miss reporting inside closure #103

Open
@CarsonF

Description

@CarsonF

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.

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