Skip to content

Commit b912f96

Browse files
milousdg
authored andcommitted
BadRequestException: parent exception is Throwable (#236)
1 parent 56e9d45 commit b912f96

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Application/exceptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ class BadRequestException extends \Exception
4646
protected $code = Http\IResponse::S404_NOT_FOUND;
4747

4848

49-
public function __construct(string $message = '', int $httpCode = 0, \Exception $previous = null)
49+
public function __construct(string $message = '', int $httpCode = 0, \Throwable $previous = null)
5050
{
5151
parent::__construct($message, $httpCode ?: $this->code, $previous);
5252
}

0 commit comments

Comments
 (0)