You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have upgraded to version 3 of this package and I am getting the following error:
PHP Fatal error: Call to undefined method PHP_CodeSniffer\Ruleset::setConfigData() in /vhosts/payway.trading-point.com/symfony/vendor/squizlabs/php_codesniffer/src/Ruleset.php on line 319
PHP Stack trace:
PHP 1. {main}() /vhosts/payway.trading-point.com/symfony/vendor/squizlabs/php_codesniffer/bin/phpcs:0
PHP 2. PHP_CodeSniffer\Runner->runPHPCS() /vhosts/payway.trading-point.com/symfony/vendor/squizlabs/php_codesniffer/bin/phpcs:18
PHP 3. PHP_CodeSniffer\Runner->init() /vhosts/payway.trading-point.com/symfony/vendor/squizlabs/php_codesniffer/src/Runner.php:67
PHP 4. PHP_CodeSniffer\Ruleset->__construct() /vhosts/payway.trading-point.com/symfony/vendor/squizlabs/php_codesniffer/src/Runner.php:257
PHP 5. PHP_CodeSniffer\Ruleset->processRuleset() /vhosts/payway.trading-point.com/symfony/vendor/squizlabs/php_codesniffer/src/Rules
I have a custom ruleset.xml that I only use the core sniffs. Once I remove the following two following lines from my ruleset everything seems to work fine
Note: If you only use the built-in coding standards, or you have a custom ruleset.xml file that only makes use of the sniffs and reports distributed with PHP_CodeSniffer, you do not need to make any changes to begin using PHP_CodeSniffer version 3.
I guess this is a bug because I can't find a function setConfigData in the file for this line.
The text was updated successfully, but these errors were encountered:
gsherwood
changed the title
Call to undefined method PHP_CodeSniffer\Ruleset::setConfigData()
Can't set config data inside ruleset.xml file
Dec 12, 2016
Uh oh!
There was an error while loading. Please reload this page.
I have upgraded to version 3 of this package and I am getting the following error:
I have a custom ruleset.xml that I only use the core sniffs. Once I remove the following two following lines from my ruleset everything seems to work fine
But according to the wiki:
I guess this is a bug because I can't find a function
setConfigData
in the file for this line.The text was updated successfully, but these errors were encountered: