Skip to content

Commit e8e93f7

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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() ?: 0;
55+
$statusCode = intval($exception->getCode());
5656

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

0 commit comments

Comments
 (0)