Skip to content

Commit

Permalink
BadRequestException: parent exception is Throwable (#236)
Browse files Browse the repository at this point in the history
  • Loading branch information
milous authored and dg committed Oct 21, 2019
1 parent 56e9d45 commit b912f96
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Application/exceptions.php
Expand Up @@ -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);
}
Expand Down

0 comments on commit b912f96

Please sign in to comment.