it is not helpful to get line -1 as the cause.
https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/Wigo3/+/454530/1
https://integration.wikimedia.org/ci/job/quibble-vendor-mysql-hhvm-docker/12127/console
12:22:33 PHP 5.6.99 | HHVM 3.18.6-dev | 10 parallel jobs 12:22:34 .....X... 9/9 (100 %) 12:22:34 12:22:34 12:22:34 Checked 9 files in 1.7 seconds 12:22:34 Syntax error found in 1 file 12:22:34 12:22:34 ------------------------------------------------------------ 12:22:34 Parse error: ./checkbox.phpUnexpected T_FUNCTION in ./checkbox.php on line -1 12:22:34 Script parallel-lint . --exclude vendor --exclude node_modules handling the test event returned with error code 1 12:22:34 Traceback (most recent call last): 12:22:34 File "/usr/local/bin/quibble", line 9, in <module> 12:22:34 load_entry_point('quibble==0.0.0', 'console_scripts', 'quibble')() 12:22:34 File "/usr/local/lib/python3.4/dist-packages/quibble/cmd.py", line 487, in main 12:22:34 cmd.execute() 12:22:34 File "/usr/local/lib/python3.4/dist-packages/quibble/cmd.py", line 382, in execute 12:22:34 composer=run_composer, npm=run_npm) 12:22:34 File "/usr/local/lib/python3.4/dist-packages/quibble/test.py", line 77, in run_extskin 12:22:34 subprocess.check_call(cmd, cwd=directory, env=os.environ) 12:22:34 File "/usr/lib/python3.4/subprocess.py", line 561, in check_call 12:22:34 raise CalledProcessError(retcode, cmd)
Local run looks good:
------------------------------------------------------------ Parse error: .\checkbox.php:18 16| } 17| > 18| function checkboxesrender($input, $args, $parser) 19| { 20| $voteid = $args['poll']; Unexpected 'function' (T_FUNCTION) in .\checkbox.php on line 18