@@ -305,11 +305,11 @@ protected function createConnectorRequest($connector)
305
305
if ($ headers ['Content-Type ' ] === 'application/json ' ) {
306
306
// \stdClass has no __toString(), so we should encode it manually
307
307
if ($ httpBody instanceof \stdClass) {
308
- $ httpBody = \GuzzleHttp \json_encode ($ httpBody );
308
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ httpBody );
309
309
}
310
310
// array has no __toString(), so we should encode it manually
311
311
if (is_array ($ httpBody )) {
312
- $ httpBody = \GuzzleHttp \json_encode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
312
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
313
313
}
314
314
}
315
315
} elseif (count ($ formParams ) > 0 ) {
@@ -325,7 +325,7 @@ protected function createConnectorRequest($connector)
325
325
$ httpBody = new MultipartStream ($ multipartContents );
326
326
327
327
} elseif ($ headers ['Content-Type ' ] === 'application/json ' ) {
328
- $ httpBody = \GuzzleHttp \json_encode ($ formParams );
328
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ formParams );
329
329
330
330
} else {
331
331
// for HTTP post (form)
@@ -561,11 +561,11 @@ protected function deleteConnectorRequest($connector_id)
561
561
if ($ headers ['Content-Type ' ] === 'application/json ' ) {
562
562
// \stdClass has no __toString(), so we should encode it manually
563
563
if ($ httpBody instanceof \stdClass) {
564
- $ httpBody = \GuzzleHttp \json_encode ($ httpBody );
564
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ httpBody );
565
565
}
566
566
// array has no __toString(), so we should encode it manually
567
567
if (is_array ($ httpBody )) {
568
- $ httpBody = \GuzzleHttp \json_encode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
568
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
569
569
}
570
570
}
571
571
} elseif (count ($ formParams ) > 0 ) {
@@ -581,7 +581,7 @@ protected function deleteConnectorRequest($connector_id)
581
581
$ httpBody = new MultipartStream ($ multipartContents );
582
582
583
583
} elseif ($ headers ['Content-Type ' ] === 'application/json ' ) {
584
- $ httpBody = \GuzzleHttp \json_encode ($ formParams );
584
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ formParams );
585
585
586
586
} else {
587
587
// for HTTP post (form)
@@ -836,11 +836,11 @@ protected function getConnectorsListRequest($include_additional_instance_informa
836
836
if ($ headers ['Content-Type ' ] === 'application/json ' ) {
837
837
// \stdClass has no __toString(), so we should encode it manually
838
838
if ($ httpBody instanceof \stdClass) {
839
- $ httpBody = \GuzzleHttp \json_encode ($ httpBody );
839
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ httpBody );
840
840
}
841
841
// array has no __toString(), so we should encode it manually
842
842
if (is_array ($ httpBody )) {
843
- $ httpBody = \GuzzleHttp \json_encode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
843
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
844
844
}
845
845
}
846
846
} elseif (count ($ formParams ) > 0 ) {
@@ -856,7 +856,7 @@ protected function getConnectorsListRequest($include_additional_instance_informa
856
856
$ httpBody = new MultipartStream ($ multipartContents );
857
857
858
858
} elseif ($ headers ['Content-Type ' ] === 'application/json ' ) {
859
- $ httpBody = \GuzzleHttp \json_encode ($ formParams );
859
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ formParams );
860
860
861
861
} else {
862
862
// for HTTP post (form)
@@ -1102,11 +1102,11 @@ protected function updateConnectorRequest($connector_id, $connector)
1102
1102
if ($ headers ['Content-Type ' ] === 'application/json ' ) {
1103
1103
// \stdClass has no __toString(), so we should encode it manually
1104
1104
if ($ httpBody instanceof \stdClass) {
1105
- $ httpBody = \GuzzleHttp \json_encode ($ httpBody );
1105
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ httpBody );
1106
1106
}
1107
1107
// array has no __toString(), so we should encode it manually
1108
1108
if (is_array ($ httpBody )) {
1109
- $ httpBody = \GuzzleHttp \json_encode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
1109
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
1110
1110
}
1111
1111
}
1112
1112
} elseif (count ($ formParams ) > 0 ) {
@@ -1122,7 +1122,7 @@ protected function updateConnectorRequest($connector_id, $connector)
1122
1122
$ httpBody = new MultipartStream ($ multipartContents );
1123
1123
1124
1124
} elseif ($ headers ['Content-Type ' ] === 'application/json ' ) {
1125
- $ httpBody = \GuzzleHttp \json_encode ($ formParams );
1125
+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ formParams );
1126
1126
1127
1127
} else {
1128
1128
// for HTTP post (form)
0 commit comments