Skip to content

Commit 2dc11d6

Browse files
committed
AnalyserRunner::runAnalyser() - $allowParallel
1 parent 4f152b2 commit 2dc11d6

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/Command/AnalyseApplication.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ private function runAnalyser(
186186
$postFileCallback = null;
187187
}
188188

189-
$analyserResult = $this->analyserRunner->runAnalyser($files, $allAnalysedFiles, $preFileCallback, $postFileCallback, $debug, $projectConfigFile, $input);
189+
$analyserResult = $this->analyserRunner->runAnalyser($files, $allAnalysedFiles, $preFileCallback, $postFileCallback, $debug, true, $projectConfigFile, $input);
190190

191191
if (isset($progressStarted) && $progressStarted) {
192192
$errorOutput->getStyle()->progressFinish();

src/Command/AnalyserRunner.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ public function __construct(
3939
* @param \Closure|null $preFileCallback
4040
* @param \Closure|null $postFileCallback
4141
* @param bool $debug
42+
* @param bool $allowParallel
4243
* @param string|null $projectConfigFile
4344
* @param InputInterface $input
4445
* @return AnalyserResult
@@ -50,6 +51,7 @@ public function runAnalyser(
5051
?\Closure $preFileCallback,
5152
?\Closure $postFileCallback,
5253
bool $debug,
54+
bool $allowParallel,
5355
?string $projectConfigFile,
5456
InputInterface $input
5557
): AnalyserResult
@@ -67,6 +69,7 @@ public function runAnalyser(
6769

6870
if (
6971
!$debug
72+
&& $allowParallel
7073
&& $mainScript !== null
7174
&& $schedule->getNumberOfProcesses() > 1
7275
) {

0 commit comments

Comments
 (0)