diff --git a/src/Parallel/ParallelAnalyser.php b/src/Parallel/ParallelAnalyser.php index 8fda61b1e3..1aebce8e6d 100644 --- a/src/Parallel/ParallelAnalyser.php +++ b/src/Parallel/ParallelAnalyser.php @@ -198,7 +198,8 @@ public function analyse( $loop->run(); if (count($jobs) > 0) { - throw new \PHPStan\ShouldNotHappenException('Some jobs remaining'); + $internalErrors[] = 'Some parallel worker jobs have not finished'; + $internalErrorsCount++; } return new AnalyserResult(