php-short-array-syntax-converter icon indicating copy to clipboard operation
php-short-array-syntax-converter copied to clipboard

Ran this against Drupal 8 and spotted this in it's journey

Open joelpittet opened this issue 8 years ago • 2 comments

Warning: Unexpected character in input:  ' in ~/Sites/d8/convert.php on line 62

Call Stack:
    0.0014     670888   1. {main}() ~/Sites/d8/convert.php:0
    0.0027     678216   2. token_get_all() ~/Sites/d8/convert.php:62

joelpittet avatar Aug 02 '16 01:08 joelpittet

+1 on this with various additional information points:

Warning: Unexpected character in input: '' (ASCII=22)

Also errors for: (ASCII=21) (ASCII=24) (ASCII=25) (ASCII=26) (ASCII=31) (ASCII=6 (ASCII=11) (ASCII=15) (ASCII=20) .... you get the idea

In my case, the warning arose when convert.php descended into .git directories, which I would not expect to be handled correctly. @joelpittet can you confirm that you were running convert against a PHP file?

aaronbauman avatar Nov 28 '16 20:11 aaronbauman

Oh I don't recall, it could have been going into the .git directory... They decided to build a PHPCodeSniffer rule for it instead.

joelpittet avatar Nov 28 '16 21:11 joelpittet