Skip to content

Commit

Permalink
DHL International: PHP8: Cast $dimension before calling round() (#2438)
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano authored Aug 17, 2022
1 parent 0772c26 commit cc051f2
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -741,13 +741,13 @@ protected function _getDimension($dimension, $configWeightUnit = false)

if ($configDimensionUnit != $countryDimensionUnit) {
$dimension = (float) Mage::helper('usa')->convertMeasureDimension(
round($dimension, 3),
round((float)$dimension, 3),
$configDimensionUnit,
$countryDimensionUnit
);
}

return round($dimension, 3);
return round((float)$dimension, 3);
}

/**
Expand Down

0 comments on commit cc051f2

Please sign in to comment.