Skip to content

Commit

Permalink
PHPStan Pro - do not repeat ProcessCrashedException in CLI output bec…
Browse files Browse the repository at this point in the history
…ause it's already presented in the UI
  • Loading branch information
ondrejmirtes committed Jun 18, 2024
1 parent 4e8224b commit 6e70041
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/Command/FixerApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -477,10 +477,9 @@ private function analyse(
$this->processInProgress->then(function () use ($server): void {
$this->processInProgress = null;
$server->close();
}, function (Throwable $e) use ($server, $output, $phpstanFixerEncoder): void {
}, function (Throwable $e) use ($server, $phpstanFixerEncoder): void {
$this->processInProgress = null;
$server->close();
$output->writeln('<error>Worker process exited: ' . $e->getMessage() . '</error>');

if ($e instanceof ProcessCanceledException) {
return;
Expand All @@ -504,7 +503,6 @@ private function analyse(
false,
)],
]]);
throw $e;
});
}

Expand Down

0 comments on commit 6e70041

Please sign in to comment.