Skip to content

Commit

Permalink
Fix PHP 8 warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zonky2 committed Oct 4, 2023
1 parent 6ef2fd4 commit 69a2ba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Hook/ReplaceInsertTags.php
Original file line number Diff line number Diff line change
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 69a2ba8

Please sign in to comment.