phpcheckstyle icon indicating copy to clipboard operation
phpcheckstyle copied to clipboard

[Feature request] Bracket position for closure

Open Slavenin opened this issue 8 years ago • 1 comments

Hi! I am using "new line" open curly brace position in my code. But in closure need position in same line.

$response->setCallback(function () use($path) {
    readfile($path);
});

Slavenin avatar Jun 06 '17 14:06 Slavenin

Hello,

Thanks for your reports on issues.

I think they all fall in the categorie of "PHPChecstyle hasn't been tested with these new features yet". I still have to write some unit tests for square braquet notation for arrays, closures, ...

I will have a look as soon as I can.

tchule avatar Jun 06 '17 15:06 tchule