diff --git a/src/Application/exceptions.php b/src/Application/exceptions.php index 3f0717bca..cad173ea6 100644 --- a/src/Application/exceptions.php +++ b/src/Application/exceptions.php @@ -46,7 +46,7 @@ class BadRequestException extends \Exception protected $code = Http\IResponse::S404_NOT_FOUND; - public function __construct(string $message = '', int $httpCode = 0, \Exception $previous = null) + public function __construct(string $message = '', int $httpCode = 0, \Throwable $previous = null) { parent::__construct($message, $httpCode ?: $this->code, $previous); }