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

Error

CommentFileSizeAuthor
fatal_error.png89.48 KBarunkumark
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

arunkumark created an issue. See original summary.

arunkumark’s picture

Issue summary: View changes
MegaChriz’s picture

Coder isn't compatible with PHP_CodeSniffer 3.x yet. See #2863898: Support PHP_CodeSniffer version 3.3.1.

pwolanin’s picture

Just got this also - seems like many other projects recently required 3.0.0.

pfrenssen’s picture

Status: Active » Closed (duplicate)

Indeed 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.

Greg Boggs’s picture

Issue tags: -

wrong issue.