Skip to content

Commit

Permalink
array_key_exists(): Argument #2 ($array) must be of type array
Browse files Browse the repository at this point in the history
  • Loading branch information
zhouaini528 committed Dec 20, 2023
1 parent 41e11f9 commit 455b6d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/RequestV5.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);
}
Expand Down

0 comments on commit 455b6d8

Please sign in to comment.