1
0
mirror of https://github.com/Intervention/image.git synced 2025-09-03 02:42:45 +02:00

Merge pull request #1154 from ibrainventures/patch-1

[fix] php8.1 Implicit conversion from float Size.php PixelateCommand
This commit is contained in:
Oliver Vogel
2022-05-21 19:30:32 +02:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -19,7 +19,7 @@ class PixelateCommand extends AbstractCommand
$width = $image->getWidth();
$height = $image->getHeight();
$image->getCore()->scaleImage(max(1, ($width / $size)), max(1, ($height / $size)));
$image->getCore()->scaleImage(max(1, intval($width / $size)), max(1, intval($height / $size)));
$image->getCore()->scaleImage($width, $height);
return true;

View File

@@ -71,7 +71,7 @@ class Size
*/
public function getWidth()
{
return $this->width;
return intval($this->width);
}
/**
@@ -81,7 +81,7 @@ class Size
*/
public function getHeight()
{
return $this->height;
return intval($this->height);
}
/**