PHP-cs-fixer 的.php_cs.dist 自定义规则疑问?
.php_cs.dist代码如下,运行时提示align_double_arrow缺少规则,可文档里每条规则都有默认值,为什么用不上呢
$finder = PhpCsFixer\Finder::create()
->exclude('somedir')
->notPath('src/Symfony/Component/Translation/Tests/fixtures/resources.php')
->in(__DIR__)
;
return PhpCsFixer\Config::create()
->setRules([
'align_double_arrow'
])
->setFinder($finder)
;
关于 LearnKu
推荐文章: