mirror of
https://github.com/Intervention/image.git
synced 2025-08-10 07:53:58 +02:00
Fix bug
This commit is contained in:
@@ -263,22 +263,22 @@ final class Image implements ImageInterface, Countable
|
||||
return $this->encode(new JpegEncoder($quality));
|
||||
}
|
||||
|
||||
public function resize(?int $width, ?int $height): ImageInterface
|
||||
public function resize(?int $width = null, ?int $height = null): ImageInterface
|
||||
{
|
||||
return $this->modify(new ResizeModifier($width, $height));
|
||||
}
|
||||
|
||||
public function resizeDown(?int $width, ?int $height): ImageInterface
|
||||
public function resizeDown(?int $width = null, ?int $height = null): ImageInterface
|
||||
{
|
||||
return $this->modify(new ResizeDownModifier($width, $height));
|
||||
}
|
||||
|
||||
public function scale(?int $width, ?int $height): ImageInterface
|
||||
public function scale(?int $width = null, ?int $height = null): ImageInterface
|
||||
{
|
||||
return $this->modify(new ScaleModifier($width, $height));
|
||||
}
|
||||
|
||||
public function scaleDown(?int $width, ?int $height): ImageInterface
|
||||
public function scaleDown(?int $width = null, ?int $height = null): ImageInterface
|
||||
{
|
||||
return $this->modify(new ScaleDownModifier($width, $height));
|
||||
}
|
||||
|
@@ -287,7 +287,7 @@ interface ImageInterface extends IteratorAggregate, Countable
|
||||
* @param null|int $height
|
||||
* @return ImageInterface
|
||||
*/
|
||||
public function resize(?int $width, ?int $height): ImageInterface;
|
||||
public function resize(?int $width = null, ?int $height = null): ImageInterface;
|
||||
|
||||
/**
|
||||
* Resize image to the given width and/or height without exceeding the original dimensions
|
||||
@@ -296,7 +296,7 @@ interface ImageInterface extends IteratorAggregate, Countable
|
||||
* @param null|int $height
|
||||
* @return ImageInterface
|
||||
*/
|
||||
public function resizeDown(?int $width, ?int $height): ImageInterface;
|
||||
public function resizeDown(?int $width = null, ?int $height = null): ImageInterface;
|
||||
|
||||
/**
|
||||
* Resize image to the given width and/or height and keep the original aspect ratio
|
||||
@@ -305,7 +305,7 @@ interface ImageInterface extends IteratorAggregate, Countable
|
||||
* @param null|int $height
|
||||
* @return ImageInterface
|
||||
*/
|
||||
public function scale(?int $width, ?int $height): ImageInterface;
|
||||
public function scale(?int $width = null, ?int $height = null): ImageInterface;
|
||||
|
||||
/**
|
||||
* Resize image to the given width and/or height, keep the original aspect ratio
|
||||
@@ -315,7 +315,7 @@ interface ImageInterface extends IteratorAggregate, Countable
|
||||
* @param null|int $height
|
||||
* @return ImageInterface
|
||||
*/
|
||||
public function scaleDown(?int $width, ?int $height): ImageInterface;
|
||||
public function scaleDown(?int $width = null, ?int $height = null): ImageInterface;
|
||||
|
||||
/**
|
||||
* Takes the given dimensions and scales it to the largest possible size matching
|
||||
|
Reference in New Issue
Block a user