On a centos7 machine, as root, with phpcs 3.3.0 and PHP 5.4.16, be it by downloading the latest release or pulling the source code, trying to use PHPCompatibility result in an error, which I will describe below.
I set the proper path, so that phpcs can use PHPCompatibility;
phpcs --config-set installed_paths /root/PHPCompatibility/PHPCompatibility/
Then, in the directory where there is the code to parse, I run:
phpcs -vsp --runtime-set testVersion 5.4 --standard=PHPCompatibility .
Which result with this error:
Registering sniffs in the PHPCompatibility standard... PHP Fatal error: Interface 'PHP_CodeSniffer_Sniff' not found in /root/PHPCompatibility/PHPCompatibility/Sniff.php on line 24
On a centos7 machine, as root, with phpcs 3.3.0 and PHP 5.4.16, be it by downloading the latest release or pulling the source code, trying to use PHPCompatibility result in an error, which I will describe below.
I set the proper path, so that phpcs can use PHPCompatibility;
phpcs --config-set installed_paths /root/PHPCompatibility/PHPCompatibility/Then, in the directory where there is the code to parse, I run:
phpcs -vsp --runtime-set testVersion 5.4 --standard=PHPCompatibility .Which result with this error:
Registering sniffs in the PHPCompatibility standard... PHP Fatal error: Interface 'PHP_CodeSniffer_Sniff' not found in /root/PHPCompatibility/PHPCompatibility/Sniff.php on line 24