Skip to content

Commit a9032fe

Browse files
authored
Merge pull request #4 from Micro-PHP/v1.6.3
v1.6.3 Fix type error in the http-exception-dev/src/Exception/Flatten…
2 parents 4bea9d5 + 591ee98 commit a9032fe

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Exception/FlattenException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public static function createFromThrowable(\Throwable $exception, array $headers
5252
}
5353
}
5454

55-
$statusCode = $exception->getCode();
55+
$statusCode = $exception->getCode() ?: 0;
5656

5757
$e->setMessage($realException->getMessage());
5858
$e->setCode($statusCode);

0 commit comments

Comments
 (0)