diff --git a/src/Command/AnalyseApplication.php b/src/Command/AnalyseApplication.php index ab5cb4cf0e..9a3f36dbd2 100644 --- a/src/Command/AnalyseApplication.php +++ b/src/Command/AnalyseApplication.php @@ -186,7 +186,7 @@ private function runAnalyser( $postFileCallback = null; } - $analyserResult = $this->analyserRunner->runAnalyser($files, $allAnalysedFiles, $preFileCallback, $postFileCallback, $debug, $projectConfigFile, $input); + $analyserResult = $this->analyserRunner->runAnalyser($files, $allAnalysedFiles, $preFileCallback, $postFileCallback, $debug, true, $projectConfigFile, $input); if (isset($progressStarted) && $progressStarted) { $errorOutput->getStyle()->progressFinish(); diff --git a/src/Command/AnalyserRunner.php b/src/Command/AnalyserRunner.php index 2d2538e56d..0116129532 100644 --- a/src/Command/AnalyserRunner.php +++ b/src/Command/AnalyserRunner.php @@ -39,6 +39,7 @@ public function __construct( * @param \Closure|null $preFileCallback * @param \Closure|null $postFileCallback * @param bool $debug + * @param bool $allowParallel * @param string|null $projectConfigFile * @param InputInterface $input * @return AnalyserResult @@ -50,6 +51,7 @@ public function runAnalyser( ?\Closure $preFileCallback, ?\Closure $postFileCallback, bool $debug, + bool $allowParallel, ?string $projectConfigFile, InputInterface $input ): AnalyserResult @@ -67,6 +69,7 @@ public function runAnalyser( if ( !$debug + && $allowParallel && $mainScript !== null && $schedule->getNumberOfProcesses() > 1 ) {