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:
@@ -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;
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user