1
0
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:
EdgarsN
2024-01-29 21:19:49 +02:00
committed by Oliver Vogel
parent 0bc81ca1e4
commit 8e4521a5fe

View File

@@ -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