diff --git a/e2e/bug-11826/phpstan.neon.dist b/e2e/bug-11826/phpstan.neon.dist index 3f491198cff..79e4980dce0 100644 --- a/e2e/bug-11826/phpstan.neon.dist +++ b/e2e/bug-11826/phpstan.neon.dist @@ -4,5 +4,10 @@ parameters: - src - rules + # force the use of parallel processing + parallel: + jobSize: 1 + minimumNumberOfJobsPerProcess: 1 + rules: - Rules\DummyRule diff --git a/src/Command/AnalyserRunner.php b/src/Command/AnalyserRunner.php index e0642493890..ae6c4253442 100644 --- a/src/Command/AnalyserRunner.php +++ b/src/Command/AnalyserRunner.php @@ -80,7 +80,7 @@ public function runAnalyser( $mainScript = $_SERVER['argv'][0]; } - if ($mainScript !== null && $schedule->getNumberOfProcesses() > 0) { + if ($mainScript !== null && $schedule->getNumberOfProcesses() > 1) { $loop = new StreamSelectLoop(); $result = null; $promise = $this->parallelAnalyser->analyse($loop, $schedule, $mainScript, $postFileCallback, $projectConfigFile, $tmpFile, $insteadOfFile, $input, null);