Skip to content

Commit cc051f2

Browse files
authored
DHL International: PHP8: Cast $dimension before calling round() (#2438)
1 parent 0772c26 commit cc051f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app/code/core/Mage/Usa/Model/Shipping/Carrier/Dhl/International.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -741,13 +741,13 @@ protected function _getDimension($dimension, $configWeightUnit = false)
741741

742742
if ($configDimensionUnit != $countryDimensionUnit) {
743743
$dimension = (float) Mage::helper('usa')->convertMeasureDimension(
744-
round($dimension, 3),
744+
round((float)$dimension, 3),
745745
$configDimensionUnit,
746746
$countryDimensionUnit
747747
);
748748
}
749749

750-
return round($dimension, 3);
750+
return round((float)$dimension, 3);
751751
}
752752

753753
/**

0 commit comments

Comments
 (0)