We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4bea9d5 + 591ee98 commit a9032feCopy full SHA for a9032fe
1 file changed
src/Exception/FlattenException.php
@@ -52,7 +52,7 @@ public static function createFromThrowable(\Throwable $exception, array $headers
52
}
53
54
55
- $statusCode = $exception->getCode();
+ $statusCode = $exception->getCode() ?: 0;
56
57
$e->setMessage($realException->getMessage());
58
$e->setCode($statusCode);
0 commit comments