From f0bdbc9bbd7449f6312b4775ed38cec5308d0886 Mon Sep 17 00:00:00 2001 From: Amast <17783854897@163.com> Date: Tue, 12 Nov 2019 17:28:11 +0800 Subject: [PATCH] Fix fromException call constructor parameters fail. --- src/Exceptions/ApiException.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Exceptions/ApiException.php b/src/Exceptions/ApiException.php index c2d2d89..4c3b5a5 100644 --- a/src/Exceptions/ApiException.php +++ b/src/Exceptions/ApiException.php @@ -21,7 +21,7 @@ class ApiException extends Exception */ public function __construct(string $message, Throwable $previous = null) { - parent::__construct($message, $previous); + parent::__construct($message, $this->response_code, $previous); } public static function fromException(Exception $e)