throw error when running on develop branch
xinghailong opened this issue · comments
HaiLong commented
use method-2 install
throw error when running on develop branch
PHP Fatal error: Uncaught Error: Class 'PHPCSUtils\Tokens\Collections' not found in /www/PHPCompatibility/PHPCompatibility/AbstractFunctionCallParameterSniff.php:77
Stack trace:
#0 phar:///usr/local/bin/phpcs/src/Ruleset.php(3): PHPCompatibility\AbstractFunctionCallParameterSniff->register()
#1 phar:///usr/local/bin/phpcs/src/Ruleset.php(3): PHP_CodeSniffer\Ruleset->populateTokenListeners()
#2 phar:///usr/local/bin/phpcs/src/Runner.php(3): PHP_CodeSniffer\Ruleset->__construct(Object(PHP_CodeSniffer\Config))
#3 phar:///usr/local/bin/phpcs/src/Runner.php(3): PHP_CodeSniffer\Runner->init()
#4 /usr/local/bin/phpcs(6): PHP_CodeSniffer\Runner->runPHPCS()
#5 {main}
thrown in /www/PHPCompatibility/PHPCompatibility/AbstractFunctionCallParameterSniff.php on line 77
Fatal error: Uncaught Error: Class 'PHPCSUtils\Tokens\Collections' not found in /www/PHPCompatibility/PHPCompatibility/AbstractFunctionCallParameterSniff.php:77
Stack trace:
#0 phar:///usr/local/bin/phpcs/src/Ruleset.php(3): PHPCompatibility\AbstractFunctionCallParameterSniff->register()
#1 phar:///usr/local/bin/phpcs/src/Ruleset.php(3): PHP_CodeSniffer\Ruleset->populateTokenListeners()
#2 phar:///usr/local/bin/phpcs/src/Runner.php(3): PHP_CodeSniffer\Ruleset->__construct(Object(PHP_CodeSniffer\Config))
#3 phar:///usr/local/bin/phpcs/src/Runner.php(3): PHP_CodeSniffer\Runner->init()
#4 /usr/local/bin/phpcs(6): PHP_CodeSniffer\Runner->runPHPCS()
#5 {main}
thrown in /www/PHPCompatibility/PHPCompatibility/AbstractFunctionCallParameterSniff.php on line 77
Juliette commented
@xinghailong Looks like you already found the answer to your question. As of the release of v 10.0.0, a Composer install is the way to go. Other install ways are still possible, but won't be supported.