PHP Fatal error:  Interface 'PHP_CodeSniffer_MultiFileSniff' not found in /usr/share/php/drupalcs/Drupal/Sniffs/InfoFiles/ClassFilesSniff.php on line 21

I've just install phcs - 1.5.0RC3 from pear and got the message above. It seems like interface PHP_CodeSniffer_MultiFileSniff was removed from the latest phpcs release.

Comments

nahed’s picture

Hi,
Did you solve you problem? I have the same problem as yours and dont' know how to fix it.

chi’s picture

I have installed 1.4.3 version of PHP_CodeSniffer.

nahed’s picture

Thank you, that worked for me

klausi’s picture

Status: Active » Fixed

Thanks for reporting, that interface was removed from some PHP_CodeSniffer branch, while it still exists in the master branch. We can assume that it will go away here, too, so I committed a fix to not rely on it anymore.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

tannerg’s picture

Updating to the dev version of this module fixed this for me.

I think it would be great to move this to a release as I know lots of people that end up running the older version of code sniffer to fix this.

Thanks for all the awesome work on the coder module!