Php_codesniffer: phpcbf errors with PSR2 with some code comments

Created on 5 Sep 2016  路  1Comment  路  Source: squizlabs/PHP_CodeSniffer

The attached code will cause the fixers to error and exit

Error

Processing bbcode.php [PHP => 30 tokens in 12 lines]... DONE in 12ms (1 fixable violations)
        => Fixing file: 1/1 violations remaining [made 50 passes]... ERROR in 973ms
Fixed 0 files

Code

<?php
/**
 * File comment
 */


// [list=greek] Ordered list, lowercase Greek letters, starting at alpha
// [list=01] Ordered list, two-digit numeric with 0-padding, starting at 01
/**
* @param $bbcode
* @param $action

(we are also seeing this with our in development custom code style which also uses parts of PSR2 as reported in this comment https://github.com/joomla/coding-standards/pull/109#issuecomment-244628614)

Possibly related to #1141
bbcode.zip

Bug

Most helpful comment

This was fixed as a side-effect of fixing #1141.

>All comments

This was fixed as a side-effect of fixing #1141.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ht-bs picture ht-bs  路  3Comments

wowcut picture wowcut  路  3Comments

stephanvierkant picture stephanvierkant  路  3Comments

justintadlock picture justintadlock  路  3Comments

LPodolski picture LPodolski  路  3Comments