Add Exception getCode to formatExceptionAsDataArray

This commit is contained in:
Gabriel Wanzek
2020-10-19 17:53:02 +02:00
committed by GitHub
parent fa50d9db1c
commit 8339648ab6
+1
View File
@@ -21,6 +21,7 @@ class Formatter
$response = [
'type' => get_class($exception),
'message' => $exception->getMessage(),
'code' => $exception->getCode(),
'file' => $exception->getFile(),
'line' => $exception->getLine(),
];