Skip to content

Commit 4ad115d

Browse files
committed
cast framewidth/height as float to prevent string values for round methods.
1 parent 48bf67d commit 4ad115d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Image/Adapter/AbstractAdapter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -594,8 +594,8 @@ protected function _adaptResizeValues($frameWidth, $frameHeight)
594594
/**
595595
* Check aspect ratio
596596
*
597-
* @param int $frameWidth
598-
* @param int $frameHeight
597+
* @param int|float $frameWidth
598+
* @param int|float $frameHeight
599599
* @return int[]
600600
*/
601601
protected function _checkAspectRatio($frameWidth, $frameHeight)

0 commit comments

Comments
 (0)