Open vpassapera opened 3 years ago
AFAICT, this is a problem in PHP CodeSniffer's PEAR.FunctionCommentSniff
, which is only extended by Symfony.FunctionCommentSniff
. Could anybody verify this and report it to the upstream project?
https://github.com/squizlabs/PHP_CodeSniffer/pull/3396 might fix this.
phpc 3.6.1 got released, @vpassapera could you test, if that fixes this issue?
In my controller, I have:
Running PHP CS on this, returns:
It seems the sniff does not accept attributes in between the phpdoc block and the method. This seems incorrect.
It works if I move the attribute above the docblock, but that just seems lexically wrong.