Php_codesniffer: Interactive mode is broken

Created on 9 Jun 2017  路  2Comments  路  Source: squizlabs/PHP_CodeSniffer

Only just noticed this (while doing a live demo on stage.. ouch), but the -a option / interactive mode seems to be broken in PHPCS 3.x.

Stack trace:

Fatal error: Uncaught exception 'PHP_CodeSniffer\Exceptions\RuntimeException' with message 'Can't __set() showProcess; setting doesn't exist' in PHP_CodeSniffer\src\Config.php on line 208

PHP_CodeSniffer\Exceptions\RuntimeException: Can't __set() showProcess; setting doesn't exist in PHP_CodeSniffer\src\Config.php on line 208

Call Stack:
    0.0010     126032   1. {main}() PHP_CodeSniffer\bin\phpcs:0
    0.0060     294040   2. PHP_CodeSniffer\Runner->runPHPCS() PHP_CodeSniffer\bin\phpcs:18
    0.3110    3696312   3. PHP_CodeSniffer\Config->__set() PHP_CodeSniffer\bin\phpcs:103
Bug

Most helpful comment

Sorry you had to come across this in a live demo. I've fixed it now.

All 2 comments

Sorry you had to come across this in a live demo. I've fixed it now.

@gsherwood Thanks for fixing this and the quick turn around. Things like this happen, luckily I'm not easily flustered ;-)

Was this page helpful?
0 / 5 - 0 ratings