Skip to content

Commit 8bfb003

Browse files
author
Stanislau Komar
committed
v1.6.3 Fix type error in the http-exception-dev/src/Exception/FlattenException.php
1 parent 591ee98 commit 8bfb003

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

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

0 commit comments

Comments
 (0)