Skip to content

Commit

Permalink
BUG Fix issue in DetailedErrorFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
Damian Mooyman committed Jun 22, 2017
1 parent 738f50c commit 7ed4660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Logging/DetailedErrorFormatter.php
Expand Up @@ -24,7 +24,7 @@ public function format(array $record)
'trace' => $exception->getTrace(),
);
} else {
$context = $record['context'];
$context = isset($record['context']) ? $record['context'] : $record;
foreach (array('code','message','file','line') as $key) {
if (!isset($context[$key])) {
$context[$key] = isset($record[$key]) ? $record[$key] : null;
Expand Down

0 comments on commit 7ed4660

Please sign in to comment.