Skip to content

Commit

Permalink
Update Client.php (#21)
Browse files Browse the repository at this point in the history
fix error "implode(): Passing glue string after array is deprecated. Swap the parameters"
  • Loading branch information
lexxkn authored Apr 19, 2021
1 parent 6095e00 commit 8dceddc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 8dceddc

Please sign in to comment.