Skip to content

Commit 774837b

Browse files
committed
Remove JSON_FORCE_OBJECT from json_encode call
This is incorrect behaviour, as all arrays were getting encoded as JSON objects, regardless of their associativity.
1 parent 957741e commit 774837b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/MailChimp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private function makeRequest($http_verb, $method, $args=array(), $timeout=10)
6969
{
7070
$url = $this->api_endpoint.'/'.$method;
7171

72-
$json_data = json_encode($args, JSON_FORCE_OBJECT);
72+
$json_data = json_encode($args);
7373

7474
if (function_exists('curl_init') && function_exists('curl_setopt')) {
7575
$ch = curl_init();

0 commit comments

Comments
 (0)