From f7fd1f3c5d8c41656ba70774b8cfebfc92820cfd Mon Sep 17 00:00:00 2001 From: Oliver Vogel Date: Sat, 21 Oct 2023 10:04:29 +0200 Subject: [PATCH] Change return types --- src/Drivers/Abstract/AbstractFont.php | 2 +- src/Interfaces/FontInterface.php | 2 +- src/Interfaces/ImageInterface.php | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Drivers/Abstract/AbstractFont.php b/src/Drivers/Abstract/AbstractFont.php index dd39739c..a9bc192c 100644 --- a/src/Drivers/Abstract/AbstractFont.php +++ b/src/Drivers/Abstract/AbstractFont.php @@ -68,7 +68,7 @@ abstract class AbstractFont implements FontInterface return $this; } - public function getColor(): ?ColorInterface + public function getColor(): ColorInterface { return $this->handleInput($this->color); } diff --git a/src/Interfaces/FontInterface.php b/src/Interfaces/FontInterface.php index 6ff95e44..efd1b7aa 100644 --- a/src/Interfaces/FontInterface.php +++ b/src/Interfaces/FontInterface.php @@ -8,7 +8,7 @@ use Intervention\Image\Interfaces\ColorInterface; interface FontInterface { public function color($color): self; - public function getColor(): ?ColorInterface; + public function getColor(): ColorInterface; public function size(float $size): self; public function getSize(): float; public function angle(float $angle): self; diff --git a/src/Interfaces/ImageInterface.php b/src/Interfaces/ImageInterface.php index 45b257db..cf3083ef 100644 --- a/src/Interfaces/ImageInterface.php +++ b/src/Interfaces/ImageInterface.php @@ -3,7 +3,6 @@ namespace Intervention\Image\Interfaces; use Countable; -use Intervention\Image\Collection; use Intervention\Image\EncodedImage; use Traversable;