Skip to content

Interface 'PHP_CodeSniffer_Sniff' not found #683

@orion40

Description

@orion40

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions