BUG Fix issue in DetailedErrorFormatter

This commit is contained in:
Damian Mooyman 2017-06-22 14:49:07 +12:00
parent 738f50c497
commit 7ed4660e7a

View File

@ -24,7 +24,7 @@ class DetailedErrorFormatter implements FormatterInterface
'trace' => $exception->getTrace(), 'trace' => $exception->getTrace(),
); );
} else { } else {
$context = $record['context']; $context = isset($record['context']) ? $record['context'] : $record;
foreach (array('code','message','file','line') as $key) { foreach (array('code','message','file','line') as $key) {
if (!isset($context[$key])) { if (!isset($context[$key])) {
$context[$key] = isset($record[$key]) ? $record[$key] : null; $context[$key] = isset($record[$key]) ? $record[$key] : null;