Skip to content

Commit b78d87b

Browse files
committed
Cast parameters to integers
1 parent fbe3777 commit b78d87b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ public static function resizeMulti(\Imagick $source, array $boxSizes, array $opt
386386

387387
//put image in box
388388
$canvas = self::getBackgroundCanvas($source, $color, $blurBackground, $blurValue, $boxWidth, $boxHeight);
389-
if ($canvas->compositeImage($clone, \Imagick::COMPOSITE_ATOP, $targetX, $targetY) !== true) {
389+
if ($canvas->compositeImage($clone, \Imagick::COMPOSITE_ATOP, (int)$targetX, (int)$targetY) !== true) {
390390
//cumbersome to test
391391
throw new \Exception('Imagick::compositeImage() did not return true');//@codeCoverageIgnore
392392
}

0 commit comments

Comments
 (0)