From 8dceddc5f7a4019d303a8fc44aa00f1ed634e01d Mon Sep 17 00:00:00 2001 From: lexxkn <61002247+lexxkn@users.noreply.github.com> Date: Mon, 19 Apr 2021 15:47:00 +0500 Subject: [PATCH] Update Client.php (#21) fix error "implode(): Passing glue string after array is deprecated. Swap the parameters" --- src/Client.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Client.php b/src/Client.php index 3b8c4ca..e93be12 100644 --- a/src/Client.php +++ b/src/Client.php @@ -424,8 +424,8 @@ public function getLastOrdersForMerchants(\DateTimeInterface $from, \DateTimeInt $data['from'] = $from->format($this->dateFormat); $data['to'] = $to->format($this->dateFormat); - $data['transactionStates'] = implode(array_unique($data['transactionStates']), ','); - $data['merchants'] = implode(array_unique($data['merchants']), ','); + $data['transactionStates'] = implode(',', array_unique($data['transactionStates'])); + $data['merchants'] = implode(',', array_unique($data['merchants'])); return $this->execute($this->prefixDefault . 'getLastOrdersForMerchants.do', $data); }