1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-19 23:56:17 +02:00

Make sure all exception codes are integers, fixes #1393

This commit is contained in:
Jordi Boggiano
2019-11-12 20:38:27 +01:00
parent 0ff3a9bd03
commit cf77550dca
3 changed files with 3 additions and 3 deletions

View File

@@ -87,7 +87,7 @@ class MongoDBFormatter implements FormatterInterface
$formattedException = array(
'class' => Utils::getClass($exception),
'message' => $exception->getMessage(),
'code' => $exception->getCode(),
'code' => (int) $exception->getCode(),
'file' => $exception->getFile() . ':' . $exception->getLine(),
);