We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a99c71e commit ab74e58Copy full SHA for ab74e58
src/Command/FixerApplication.php
@@ -488,17 +488,19 @@ private function analyse(
488
489
if ($e instanceof ProcessCrashedException) {
490
$message = 'Analysis crashed';
491
- $trace = $e->getMessage();
+ $traceAsString = $e->getMessage();
492
+ $trace = [];
493
} else {
494
$message = $e->getMessage();
- $trace = $e->getTraceAsString();
495
+ $traceAsString = $e->getTraceAsString();
496
+ $trace = InternalError::prepareTrace($e);
497
}
498
$phpstanFixerEncoder->write(['action' => 'analysisCrash', 'data' => [
499
'internalErrors' => [new InternalError(
500
$message,
501
'running PHPStan Pro worker',
- InternalError::prepareTrace($e),
502
$trace,
503
+ $traceAsString,
504
false,
505
)],
506
]]);
0 commit comments