Skip to content

Commit fe324c1

Browse files
committed
MC-1439: Define API & SPI and mark accordingly
1 parent 50b8a93 commit fe324c1

File tree

1 file changed

+1
-0
lines changed
  • app/code/Magento/PageBuilder/Setup/DataConverter/Renderer

1 file changed

+1
-0
lines changed

app/code/Magento/PageBuilder/Setup/DataConverter/Renderer/Column.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ public function render(array $itemData, array $additionalData = []) : string
8282
*/
8383
private function calculateColumnWidth($oldWidth) : string
8484
{
85+
$oldWidth = floatval($oldWidth);
8586
if (!isset(self::COLUMN_WIDTH_MAPPING[number_format($oldWidth, 3)])) {
8687
throw new \InvalidArgumentException('Width ' . $oldWidth .' has no valid mapping.');
8788
}

0 commit comments

Comments
 (0)