From 7573a4d62cf61f5b715f61ccd78e53784da41a92 Mon Sep 17 00:00:00 2001 From: Giovanni Metitieri Date: Wed, 21 Feb 2018 22:32:11 +0100 Subject: [PATCH] Update Whmcs.php Fix working with api like GetOrders: $invoice = $whmcs->GetOrders(['id' => '768']); var_dump($invoice); Now work --- src/Whmcs.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Whmcs.php b/src/Whmcs.php index 3aa2177..8c99423 100644 --- a/src/Whmcs.php +++ b/src/Whmcs.php @@ -60,6 +60,6 @@ public function processResponse($response) } public function __call($function, array $arguments=[]) { - return call_user_func_array([$this, 'execute'], [$function, $arguments]); + return call_user_func_array([$this, 'execute'], [$function, $arguments[0]]); } }