Skip to content

Commit

Permalink
20.7.0 MND-2430 M2.4.4 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
wsajosh committed May 13, 2022
1 parent 03ecc3d commit 9fcd06f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG-PUBLIC.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ RIV-443 Add placeorder support
RIV-530 Support address for placeOrder request


## 20.7.0 (2022-05-13)
MND-2430 M2.4.4 compatibility


4 changes: 4 additions & 0 deletions CHANGELOG.MD
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ RIV-443 Add placeorder support
RIV-530 Support address for placeOrder request


## 20.7.0 (2022-05-13)
MND-2430 M2.4.4 compatibility


2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "shipperhq/library-ws",
"description": "ShipperHQ WS Library",
"type": "magento2-library",
"version": "20.6.0",
"version": "20.7.0",
"license": [
"OSL-3.0",
"AFL-3.0"
Expand Down
4 changes: 2 additions & 2 deletions src/Client/WebServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function sendAndReceive(WebServiceRequestInterface $requestObj, $webServi
$client->setRawData($jsonRequest, 'application/json');
$response = $client->request(\Zend_Http_Client::POST);
if ($response !== null) {
$responseBody = $response->getBody();
$responseBody = (string) $response->getBody();
}

$debugData['response'] = $responseBody;
Expand Down Expand Up @@ -99,7 +99,7 @@ public function sendAndReceiveWp(WebServiceRequestInterface $requestObj, $webSer
$body = wp_remote_retrieve_body($response);

// Decode if it's json
$responseBody = json_decode($body, false);
$responseBody = json_decode((string) $body, false);
}

$debugData['response'] = $responseBody;
Expand Down

0 comments on commit 9fcd06f

Please sign in to comment.