1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-01 03:20:17 +02:00

Adapt type hints in ImageInterface

This commit is contained in:
Oliver Vogel
2024-06-09 11:25:40 +02:00
parent 0b47ee8fd0
commit d3a044e883

View File

@@ -14,6 +14,7 @@ use Intervention\Image\Geometry\Circle;
use Intervention\Image\Geometry\Ellipse; use Intervention\Image\Geometry\Ellipse;
use Intervention\Image\Geometry\Line; use Intervention\Image\Geometry\Line;
use Intervention\Image\Geometry\Polygon; use Intervention\Image\Geometry\Polygon;
use Intervention\Image\Geometry\Rectangle;
use Intervention\Image\MediaType; use Intervention\Image\MediaType;
use Intervention\Image\Origin; use Intervention\Image\Origin;
use IteratorAggregate; use IteratorAggregate;
@@ -704,11 +705,11 @@ interface ImageInterface extends IteratorAggregate, Countable
* @link https://image.intervention.io/v3/modifying/drawing#drawing-a-rectangle * @link https://image.intervention.io/v3/modifying/drawing#drawing-a-rectangle
* @param int $x * @param int $x
* @param int $y * @param int $y
* @param callable $init * @param callable|Rectangle $init
* @throws RuntimeException * @throws RuntimeException
* @return ImageInterface * @return ImageInterface
*/ */
public function drawRectangle(int $x, int $y, callable $init): self; public function drawRectangle(int $x, int $y, callable|Rectangle $init): self;
/** /**
* Draw ellipse on the current image * Draw ellipse on the current image