mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 09:10:21 +02:00
Fix ImageInterface encode() method argument (#1286)
* fix image interface encode argument * import auto encoder
This commit is contained in:
@@ -5,6 +5,7 @@ declare(strict_types=1);
|
|||||||
namespace Intervention\Image\Interfaces;
|
namespace Intervention\Image\Interfaces;
|
||||||
|
|
||||||
use Countable;
|
use Countable;
|
||||||
|
use Intervention\Image\Encoders\AutoEncoder;
|
||||||
use Intervention\Image\Origin;
|
use Intervention\Image\Origin;
|
||||||
use IteratorAggregate;
|
use IteratorAggregate;
|
||||||
|
|
||||||
@@ -66,7 +67,7 @@ interface ImageInterface extends IteratorAggregate, Countable
|
|||||||
* @param EncoderInterface $encoder
|
* @param EncoderInterface $encoder
|
||||||
* @return EncodedImageInterface
|
* @return EncodedImageInterface
|
||||||
*/
|
*/
|
||||||
public function encode(EncoderInterface $encoder): EncodedImageInterface;
|
public function encode(EncoderInterface $encoder = new AutoEncoder()): EncodedImageInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Save the image to the specified path in the file system. If no path is
|
* Save the image to the specified path in the file system. If no path is
|
||||||
|
Reference in New Issue
Block a user