Skip to content

Commit 6e70041

Browse files
committed
PHPStan Pro - do not repeat ProcessCrashedException in CLI output because it's already presented in the UI
1 parent 4e8224b commit 6e70041

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Command/FixerApplication.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,10 +477,9 @@ private function analyse(
477477
$this->processInProgress->then(function () use ($server): void {
478478
$this->processInProgress = null;
479479
$server->close();
480-
}, function (Throwable $e) use ($server, $output, $phpstanFixerEncoder): void {
480+
}, function (Throwable $e) use ($server, $phpstanFixerEncoder): void {
481481
$this->processInProgress = null;
482482
$server->close();
483-
$output->writeln('<error>Worker process exited: ' . $e->getMessage() . '</error>');
484483

485484
if ($e instanceof ProcessCanceledException) {
486485
return;
@@ -504,7 +503,6 @@ private function analyse(
504503
false,
505504
)],
506505
]]);
507-
throw $e;
508506
});
509507
}
510508

0 commit comments

Comments
 (0)