Skip to content

Commit 6cc2244

Browse files
author
Aliaksei Yakimovich2
committed
MAGETWO-98947: UPS CGI url gateway to migrate from http to https
- Fixed unit tests;
1 parent 5d81c47 commit 6cc2244

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/Magento/Ups/Model/Carrier.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ protected function _getCgiQuotes()
473473
'47_rate_chart' => $rowRequest->getPickup(),
474474
'48_container' => $rowRequest->getContainer(),
475475
'49_residential' => $rowRequest->getDestType(),
476-
'weight_std' => strtolower($rowRequest->getUnitMeasure()),
476+
'weight_std' => strtolower((string)$rowRequest->getUnitMeasure()),
477477
];
478478
$params['47_rate_chart'] = $params['47_rate_chart']['label'];
479479

@@ -537,7 +537,7 @@ protected function _parseCgiResponse($response)
537537
$priceArr = [];
538538
if (strlen(trim($response)) > 0) {
539539
$rRows = explode("\n", $response);
540-
$allowedMethods = explode(",", $this->getConfigData('allowed_methods'));
540+
$allowedMethods = explode(",", (string)$this->getConfigData('allowed_methods'));
541541
foreach ($rRows as $rRow) {
542542
$row = explode('%', $rRow);
543543
switch (substr($row[0], -1)) {

0 commit comments

Comments
 (0)