我在尝试让代码嗅探器与 Xampp (1.7.1) 一起工作时遇到了问题。我通过编辑 php.ini 中的 include_path 来运行 pear。
当我尝试运行 phpcs 时,出现以下错误:
Warning: include_once(PHP/CodeSniffer/CLI.php): failed to open stream: No such file or directory in C:\xampp\php\phpcs on Line 31
Warning: include_once(): Failed opening 'PHP/Codesniffer/CLI.php' for inclusion (include_path="\xampp\php\pear") in C:\xampp\php\phpcs on line 31
Fatal error: Class 'PHP_CodeSniffer_CLI' not found in C:\xampp\php\phpcs on line 34
有人知道这里发生了什么吗?