mirror of
https://github.com/Seldaek/monolog.git
synced 2025-10-22 17:16:18 +02:00
Make sure all exception codes are integers, fixes #1393
This commit is contained in:
@@ -186,7 +186,7 @@ class JsonFormatter extends NormalizerFormatter
|
||||
$data = array(
|
||||
'class' => Utils::getClass($e),
|
||||
'message' => $e->getMessage(),
|
||||
'code' => $e->getCode(),
|
||||
'code' => (int) $e->getCode(),
|
||||
'file' => $e->getFile().':'.$e->getLine(),
|
||||
);
|
||||
|
||||
|
Reference in New Issue
Block a user