@@ -305,11 +305,11 @@ protected function createConnectorRequest($connector)
305305 if ($ headers ['Content-Type ' ] === 'application/json ' ) {
306306 // \stdClass has no __toString(), so we should encode it manually
307307 if ($ httpBody instanceof \stdClass) {
308- $ httpBody = \GuzzleHttp \json_encode ($ httpBody );
308+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ httpBody );
309309 }
310310 // array has no __toString(), so we should encode it manually
311311 if (is_array ($ httpBody )) {
312- $ httpBody = \GuzzleHttp \json_encode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
312+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
313313 }
314314 }
315315 } elseif (count ($ formParams ) > 0 ) {
@@ -325,7 +325,7 @@ protected function createConnectorRequest($connector)
325325 $ httpBody = new MultipartStream ($ multipartContents );
326326
327327 } elseif ($ headers ['Content-Type ' ] === 'application/json ' ) {
328- $ httpBody = \GuzzleHttp \json_encode ($ formParams );
328+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ formParams );
329329
330330 } else {
331331 // for HTTP post (form)
@@ -561,11 +561,11 @@ protected function deleteConnectorRequest($connector_id)
561561 if ($ headers ['Content-Type ' ] === 'application/json ' ) {
562562 // \stdClass has no __toString(), so we should encode it manually
563563 if ($ httpBody instanceof \stdClass) {
564- $ httpBody = \GuzzleHttp \json_encode ($ httpBody );
564+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ httpBody );
565565 }
566566 // array has no __toString(), so we should encode it manually
567567 if (is_array ($ httpBody )) {
568- $ httpBody = \GuzzleHttp \json_encode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
568+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
569569 }
570570 }
571571 } elseif (count ($ formParams ) > 0 ) {
@@ -581,7 +581,7 @@ protected function deleteConnectorRequest($connector_id)
581581 $ httpBody = new MultipartStream ($ multipartContents );
582582
583583 } elseif ($ headers ['Content-Type ' ] === 'application/json ' ) {
584- $ httpBody = \GuzzleHttp \json_encode ($ formParams );
584+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ formParams );
585585
586586 } else {
587587 // for HTTP post (form)
@@ -836,11 +836,11 @@ protected function getConnectorsListRequest($include_additional_instance_informa
836836 if ($ headers ['Content-Type ' ] === 'application/json ' ) {
837837 // \stdClass has no __toString(), so we should encode it manually
838838 if ($ httpBody instanceof \stdClass) {
839- $ httpBody = \GuzzleHttp \json_encode ($ httpBody );
839+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ httpBody );
840840 }
841841 // array has no __toString(), so we should encode it manually
842842 if (is_array ($ httpBody )) {
843- $ httpBody = \GuzzleHttp \json_encode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
843+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
844844 }
845845 }
846846 } elseif (count ($ formParams ) > 0 ) {
@@ -856,7 +856,7 @@ protected function getConnectorsListRequest($include_additional_instance_informa
856856 $ httpBody = new MultipartStream ($ multipartContents );
857857
858858 } elseif ($ headers ['Content-Type ' ] === 'application/json ' ) {
859- $ httpBody = \GuzzleHttp \json_encode ($ formParams );
859+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ formParams );
860860
861861 } else {
862862 // for HTTP post (form)
@@ -1102,11 +1102,11 @@ protected function updateConnectorRequest($connector_id, $connector)
11021102 if ($ headers ['Content-Type ' ] === 'application/json ' ) {
11031103 // \stdClass has no __toString(), so we should encode it manually
11041104 if ($ httpBody instanceof \stdClass) {
1105- $ httpBody = \GuzzleHttp \json_encode ($ httpBody );
1105+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ httpBody );
11061106 }
11071107 // array has no __toString(), so we should encode it manually
11081108 if (is_array ($ httpBody )) {
1109- $ httpBody = \GuzzleHttp \json_encode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
1109+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode (ObjectSerializer::sanitizeForSerialization ($ httpBody ));
11101110 }
11111111 }
11121112 } elseif (count ($ formParams ) > 0 ) {
@@ -1122,7 +1122,7 @@ protected function updateConnectorRequest($connector_id, $connector)
11221122 $ httpBody = new MultipartStream ($ multipartContents );
11231123
11241124 } elseif ($ headers ['Content-Type ' ] === 'application/json ' ) {
1125- $ httpBody = \GuzzleHttp \json_encode ($ formParams );
1125+ $ httpBody = \GuzzleHttp \Utils:: jsonEncode ($ formParams );
11261126
11271127 } else {
11281128 // for HTTP post (form)
0 commit comments