在phpstorm
中Quality Tools
中配置完PHP CS Fixer
,点击VALIDATE
验证时出现错误信息:
cannot determine tool version, got 'PHP CS Fixer 3.14.4 Oliva by Fabien Potencier and Dariusz Ruminski. PHP runtime:7.4.19
这是一个bug
导致找到解决办法,编辑PHP CS Fixer
的composer包的源代码:
路径:vendor/friendsofphp/php-cs-fixer/src/Console/Application.php
行数:131
"\nPHP runtime: <info>".PHP_VERSION.'</info>',
修改为:
"PHP runtime: <info>".PHP_VERSION.'</info>',
即可。
phpstorm 配置PHP CS Fixer VALIDATE 报错
原文链接:https://beltxman.com/3887.html,若无特殊说明本站内容为 行星带 原创,未经同意禁止转载。