From 374d82e1d19c7637d808680dff44e529dbd2aa1b Mon Sep 17 00:00:00 2001 From: justmd5 Date: Mon, 15 Jun 2020 15:58:10 +0800 Subject: [PATCH] fix #12 Argument 1 passed to Hanson\\Foundation\\Http::__construct() must be an instance of Hanson\\Foundation\\Foundation, null given, called --- src/Api.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Api.php b/src/Api.php index ebcd736..b248a37 100644 --- a/src/Api.php +++ b/src/Api.php @@ -22,6 +22,7 @@ class Api extends AbstractAPI public function __construct(PinDuoDuo $pinduoduo, $needToken = false) { + parent::__construct($pinduoduo); $this->pinduoduo = $pinduoduo; $this->needToken = $needToken; }