Skip to content

Commit 422bfe7

Browse files
committed
Revert "Debug weird internal error"
This reverts commit 587ec84.
1 parent a176c83 commit 422bfe7

1 file changed

Lines changed: 3 additions & 9 deletions

File tree

src/Command/WorkerCommand.php

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -178,16 +178,10 @@ private function runWorker(
178178
}
179179
} catch (\Throwable $t) {
180180
$internalErrorsCount++;
181-
$internalErrorMessage = '';
182-
while ($t !== null) {
183-
$internalErrorMessage .= sprintf('Internal error: %s in file %s', $t->getMessage(), $file);
184-
$internalErrorMessage .= $t->getTraceAsString();
185-
$internalErrorMessage .= "\n";
186-
$t = $t->getPrevious();
187-
}
188-
181+
$internalErrorMessage = sprintf('Internal error: %s in file %s', $t->getMessage(), $file);
189182
$internalErrorMessage .= sprintf(
190-
'Run PHPStan with --debug option and post the stack trace to:%s%s',
183+
'%sRun PHPStan with --debug option and post the stack trace to:%s%s',
184+
"\n",
191185
"\n",
192186
'https://github.com/phpstan/phpstan/issues/new'
193187
);

0 commit comments

Comments
 (0)