Merge pull request #674 from CodeBrauer/master

Add Exception getCode to formatExceptionAsDataArray
This commit is contained in:
Denis Sokolov
2020-10-20 12:11:14 +03:00
committed by GitHub
+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(),
];