We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a176c83 commit 422bfe7Copy full SHA for 422bfe7
1 file changed
src/Command/WorkerCommand.php
@@ -178,16 +178,10 @@ private function runWorker(
178
}
179
} catch (\Throwable $t) {
180
$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
-
+ $internalErrorMessage = sprintf('Internal error: %s in file %s', $t->getMessage(), $file);
189
$internalErrorMessage .= sprintf(
190
- 'Run PHPStan with --debug option and post the stack trace to:%s%s',
+ '%sRun PHPStan with --debug option and post the stack trace to:%s%s',
+ "\n",
191
"\n",
192
'https://github.com/phpstan/phpstan/issues/new'
193
);
0 commit comments