Merge pull request #7603 from open-sausages/pulls/4.0/error-trace-included

ENHANCEMENT Don't infer trace if explicitly provided
This commit is contained in:
Chris Joe 2018-03-07 10:10:40 +13:00 committed by GitHub
commit 6ae07d100c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -31,6 +31,7 @@ class DetailedErrorFormatter implements FormatterInterface
}
}
if (!isset($context['trace'])) {
$trace = debug_backtrace();
// Filter out monolog plumbing from the trace
@ -43,6 +44,7 @@ class DetailedErrorFormatter implements FormatterInterface
$context['trace'] = null;
}
}
}
return $this->output(
$context['code'],