mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-20 16:16:37 +02:00
CS fixes
This commit is contained in:
@@ -84,12 +84,12 @@ class MongoDBFormatter implements FormatterInterface
|
||||
|
||||
protected function formatException(\Throwable $exception, $nestingLevel)
|
||||
{
|
||||
$formattedException = array(
|
||||
$formattedException = [
|
||||
'class' => get_class($exception),
|
||||
'message' => $exception->getMessage(),
|
||||
'code' => $exception->getCode(),
|
||||
'file' => $exception->getFile() . ':' . $exception->getLine(),
|
||||
);
|
||||
];
|
||||
|
||||
if ($this->exceptionTraceAsString === true) {
|
||||
$formattedException['trace'] = $exception->getTraceAsString();
|
||||
|
Reference in New Issue
Block a user