mirror of
https://github.com/Intervention/image.git
synced 2025-08-30 17:19:50 +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;
|
||||
|
||||
use Countable;
|
||||
use Intervention\Image\Encoders\AutoEncoder;
|
||||
use Intervention\Image\Origin;
|
||||
use IteratorAggregate;
|
||||
|
||||
@@ -66,7 +67,7 @@ interface ImageInterface extends IteratorAggregate, Countable
|
||||
* @param EncoderInterface $encoder
|
||||
* @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
|
||||
|
Reference in New Issue
Block a user