Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Am getting the PHP Fatal error on latest Coder module. While trying to run the below comment we getting error as.
phpcs --standard=Drupal -e
PHP Fatal error: Interface 'PHP_CodeSniffer_Sniff' not found in /usr/share/php/PHP/CodeSniffer/src/Standards/Drupal/Sniffs/Array/ArraySniff.php on line 21
Versions:
PHP_CodeSniffer-3.2.2
Ubuntu 14.04 LTS
PHP 7.1
Coder module 8.x-2.x
Comment | File | Size | Author |
---|---|---|---|
fatal_error.png | 89.48 KB | arunkumark |
Comments
Comment #2
arunkumarkComment #3
MegaChriz CreditAttribution: MegaChriz at WebCoo commentedCoder isn't compatible with PHP_CodeSniffer 3.x yet. See #2863898: Support PHP_CodeSniffer version 3.3.1.
Comment #4
pwolanin CreditAttribution: pwolanin as a volunteer and at SciShield commentedJust got this also - seems like many other projects recently required 3.0.0.
Comment #5
pfrenssenIndeed we're not compatible with PHP_CodeSniffer 3.x yet. I can recommend using Composer to manage your project's dependencies. That will make sure you are running a compatible version of PHP_CodeSniffer automatically. It will also ensure that when we move to PHPCS 3.x that you will pull in the 3.x version when you update Coder.
Marking as a duplicate of #2863898: Support PHP_CodeSniffer version 3.3.1.
Comment #6
Greg Boggswrong issue.