From 455b6d8d23b112687ff83f73f7bb4c566fa19860 Mon Sep 17 00:00:00 2001 From: zhouaini528 <465382251@qq.com> Date: Wed, 20 Dec 2023 11:18:28 +0800 Subject: [PATCH] array_key_exists(): Argument #2 ($array) must be of type array --- src/RequestV5.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/RequestV5.php b/src/RequestV5.php index 96d1830..a12f04d 100644 --- a/src/RequestV5.php +++ b/src/RequestV5.php @@ -84,7 +84,7 @@ protected function nonce(){ * */ protected function signature(){ if(!empty($this->key) && !empty($this->secret)){ - if(array_key_exists('X-BAPI-RECV-WINDOW',$this->options['headers'])){ + if(isset($this->options['headers']) && array_key_exists('X-BAPI-RECV-WINDOW',$this->options['headers'])){ $this->recv_window=$this->options['headers']['X-BAPI-RECV-WINDOW']; unset($this->options['headers']['X-BAPI-RECV-WINDOW']); }