Skip to content

Commit 4c23f4e

Browse files
committed
Tweak the php-cs-fixer config to fix files in parallel
1 parent 5e3df49 commit 4c23f4e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.php-cs-fixer.dist.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
;
1515

1616
return (new PhpCsFixer\Config())
17+
->setParallelConfig(PhpCsFixer\Runner\Parallel\ParallelConfigFactory::detect())
1718
->setRiskyAllowed(true)
1819
->setRules([
1920
'@PHP80Migration:risky' => true,
@@ -37,5 +38,5 @@
3738
'declare_strict_types' => true,
3839
])
3940
->setFinder($finder)
40-
->setCacheFile(__DIR__.'/var/.php-cs-fixer.cache') // forward compatibility with 3.x line
41+
->setCacheFile(__DIR__.'/var/.php-cs-fixer.cache')
4142
;

0 commit comments

Comments
 (0)