PHPCompatibility / PHPCompatibility

PHP Compatibility check for PHP_CodeSniffer

Home Page:http://techblog.wimgodden.be/tag/codesniffer/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

throw error when running on develop branch

xinghailong opened this issue · comments

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

if you want to use develop branch, see:#1312

@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.