1

当我运行 phpcs 时,它会打印一个错误,该错误引用了我的项目以前所在的路径,但不再位于...

PHP Fatal error: Uncaught exception 'UnexpectedValueException' with message 'DirectoryIterator::__construct(/my/old/directory/public_html/coder/coder_sniffer): failed to open dir: No such file or directory' in /usr/share/php/PHP/CodeSniffer.php:2159

如何修复 my/old/directory 路径?

4

1 回答 1

1

I was able to fix the problem by following the instructions at https://www.drupal.org/node/1419988 under "Install Coder and PHPCS with Composer"

I did not need to do the parts that begin "If you wish to use a different version of coder" and "You can also use a git repository".

于 2017-02-14T16:10:06.837 回答