Skip to content

Commit 6c61e49

Browse files
committed
More useful behaviour of "some jobs remaining"
1 parent 0e42941 commit 6c61e49

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Parallel/ParallelAnalyser.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,8 @@ public function analyse(
198198
$loop->run();
199199

200200
if (count($jobs) > 0) {
201-
throw new \PHPStan\ShouldNotHappenException('Some jobs remaining');
201+
$internalErrors[] = 'Some parallel worker jobs have not finished';
202+
$internalErrorsCount++;
202203
}
203204

204205
return new AnalyserResult(

0 commit comments

Comments
 (0)