Skip to content

Commit

Permalink
Merge pull request #8 from zonky2/patch-3
Browse files Browse the repository at this point in the history
Fix PHP 8 warnings
  • Loading branch information
Stefanmelz committed Oct 13, 2023
2 parents 6ef2fd4 + 69a2ba8 commit 7aba0e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Hook/ReplaceInsertTags.php
Expand Up @@ -176,11 +176,11 @@ protected function replaceInline($uuid, $params = array())
$resizeBox = null;

if ($width && $height) {
$resizeBox = new Box($width, $height);
$resizeBox = new Box((int) $width, (int) $height);
} else if ($width && !$height) {
$resizeBox = new Box($width, $width * $ratio);
$resizeBox = new Box((int) $width, (int) $width * $ratio);
} else if (!$width && $height) {
$resizeBox = new Box($height / $ratio, $height);
$resizeBox = new Box((int) $height / $ratio, (int) $height);
}

$imagineSvg->resize($resizeBox);
Expand Down

0 comments on commit 7aba0e2

Please sign in to comment.