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; } /**