From 23d7a715d7901ccf91c60d6fd7a57934d2d1cea8 Mon Sep 17 00:00:00 2001 From: Diego Marty Date: Thu, 12 May 2022 12:22:27 +0200 Subject: [PATCH] Updated return type to avoid implicit float to int conversion --- lib/ImageResize.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/ImageResize.php b/lib/ImageResize.php index 0eea1e6..e7babe4 100644 --- a/lib/ImageResize.php +++ b/lib/ImageResize.php @@ -740,7 +740,7 @@ public function getDestHeight() * * @param integer $expectedSize * @param integer $position - * @return float|integer + * @return integer */ protected function getCropPosition($expectedSize, $position = self::CROPCENTER) { @@ -758,7 +758,7 @@ protected function getCropPosition($expectedSize, $position = self::CROPCENTER) $size = $expectedSize / 4; break; } - return $size; + return (int) $size; } /**