Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BlankLineBeforeReturn miss reporting inside closure #103

Open
CarsonF opened this issue Jul 28, 2017 · 0 comments
Open

BlankLineBeforeReturn miss reporting inside closure #103

CarsonF opened this issue Jul 28, 2017 · 0 comments

Comments

@CarsonF
Copy link

CarsonF commented Jul 28, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant