File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
app/code/Magento/Ups/Model Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -473,7 +473,7 @@ protected function _getCgiQuotes()
473
473
'47_rate_chart ' => $ rowRequest ->getPickup (),
474
474
'48_container ' => $ rowRequest ->getContainer (),
475
475
'49_residential ' => $ rowRequest ->getDestType (),
476
- 'weight_std ' => strtolower ($ rowRequest ->getUnitMeasure ()),
476
+ 'weight_std ' => strtolower (( string ) $ rowRequest ->getUnitMeasure ()),
477
477
];
478
478
$ params ['47_rate_chart ' ] = $ params ['47_rate_chart ' ]['label ' ];
479
479
@@ -537,7 +537,7 @@ protected function _parseCgiResponse($response)
537
537
$ priceArr = [];
538
538
if (strlen (trim ($ response )) > 0 ) {
539
539
$ rRows = explode ("\n" , $ response );
540
- $ allowedMethods = explode (", " , $ this ->getConfigData ('allowed_methods ' ));
540
+ $ allowedMethods = explode (", " , ( string ) $ this ->getConfigData ('allowed_methods ' ));
541
541
foreach ($ rRows as $ rRow ) {
542
542
$ row = explode ('% ' , $ rRow );
543
543
switch (substr ($ row [0 ], -1 )) {
You can’t perform that action at this time.
0 commit comments