From 8041ddb190ab85953a1446d61f4ca05363794e5b Mon Sep 17 00:00:00 2001 From: dmzoneill Date: Tue, 16 Oct 2018 13:44:49 +0100 Subject: [PATCH] Fix for counting the args --- php-binance-api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php-binance-api.php b/php-binance-api.php index 8ef3b562..4e46e4e6 100755 --- a/php-binance-api.php +++ b/php-binance-api.php @@ -65,7 +65,7 @@ class API public function __construct() { $param = func_get_args(); - switch (func_num_args()) { + switch (count($param)) { case 0: $this->setupApiConfigFromFile(); $this->setupProxyConfigFromFile();