1
0
mirror of https://github.com/Seldaek/monolog.git synced 2025-10-22 09:06:10 +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

@@ -129,7 +129,7 @@ class NormalizerFormatter implements FormatterInterface
$data = array(
'class' => Utils::getClass($e),
'message' => $e->getMessage(),
'code' => $e->getCode(),
'code' => (int) $e->getCode(),
'file' => $e->getFile().':'.$e->getLine(),
);