Closed centerax closed 9 years ago
:+1: I am getting this issue with phpcs 2.0.0 but it runs fine with 1.5.6
I'm seeing this with 2.0 as well. I was having different issues before upgrading on 1.5.3
I am also getting the same issue with phpcs (PHP_CodeSniffer version 2.0.0).
Same here with PHPCS v.2.0.0. After changing those functions to public, it worked.
Yay! Ecg_Sniffs_Security_ForbiddenFunctionSniff::protected $forbiddenFunctions -> public $forbiddenFunctions works.
Fix works perfectly for me too.
Getting this error while trying to run phpcs with this standard.
Registering sniffs in the Ecg standard... PHP Fatal error: Access level to Ecg_Sniffs_Security_ForbiddenFunctionSniff::$forbiddenFunctions must be public (as in class Generic_Sniffs_PHP_ForbiddenFunctionsSniff) in vendor/magento-ecg/coding-standard/Ecg/Sniffs/Security/ForbiddenFunctionSniff.php on line 4
I changed that class property to public and it runs fine.