Skip to content

Commit

Permalink
Re-Order the array keys so that JSON will be an array, not an object
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Pick committed Jan 3, 2018
1 parent 3f35526 commit 365cc3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/PayPal/Api/CartBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ public function getPaymentOptions()
*/
public function setItemList($item_list)
{
$this->item_list = $item_list;
$this->item_list = array_values($item_list);
return $this;
}

Expand Down

0 comments on commit 365cc3e

Please sign in to comment.