From 784a6906f6439ea0e0bbf01ab69bf727b1de7471 Mon Sep 17 00:00:00 2001 From: Gregor Harlan Date: Sun, 13 Oct 2024 17:01:23 +0200 Subject: [PATCH] Enable parallel runner (#35) --- src/Config.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Config.php b/src/Config.php index 5bc30e9..fa3ae3e 100644 --- a/src/Config.php +++ b/src/Config.php @@ -5,6 +5,7 @@ namespace Redaxo\PhpCsFixerConfig; use PhpCsFixer\ConfigInterface; +use PhpCsFixer\Runner\Parallel\ParallelConfigFactory; use PhpCsFixerCustomFixers\Fixer\MultilinePromotedPropertiesFixer; use PhpCsFixerCustomFixers\Fixer\PhpdocSingleLineVarFixer; use PhpCsFixerCustomFixers\Fixers; @@ -24,6 +25,7 @@ public function __construct(string $name = 'REDAXO 5') parent::__construct($name); $this->setUsingCache(true); + $this->setParallelConfig(ParallelConfigFactory::detect()); $this->setRiskyAllowed(true); $this->registerCustomFixers(new Fixers()); $this->registerCustomFixers([