Skip to content

Commit

Permalink
use monolog versions from 1.7 and up (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Harry Bragg authored Jun 20, 2018
1 parent 9718c9f commit 5859041
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
},
"require": {
"monolog/monolog": "^1.23"
"monolog/monolog": "^1.7"
},
"require-dev": {
"adlawson/timezone": "^1.0",
Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public function testFormatException()
],
];
$formatted = $formatter->format($input);
unset($formatted['context']['exception']['trace'], $formatted['context']['exception']['previous']);
unset($formatted['context']['exception']['trace'], $formatted['context']['exception']['previous'], $formatted['context']['exception']['code']);

$this->assertEquals([
'level_name' => 'WARNING',
Expand All @@ -75,7 +75,6 @@ public function testFormatException()
'exception' => [
'class' => get_class($ex),
'message' => $ex->getMessage(),
'code' => $ex->getCode(),
'file' => $ex->getFile().':'.$ex->getLine(),
]
],
Expand Down

0 comments on commit 5859041

Please sign in to comment.