From cbc0ef61f9bb61c5740892aadb084c5107ed160f Mon Sep 17 00:00:00 2001 From: Simon Hamp Date: Tue, 23 Jul 2024 19:02:08 +0100 Subject: [PATCH] Fix types --- src/Border.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Border.php b/src/Border.php index 7fc802c..883b28e 100644 --- a/src/Border.php +++ b/src/Border.php @@ -3,6 +3,7 @@ namespace SimonHamp\TheOg; use Intervention\Image\Colors\Rgb\Color; +use Intervention\Image\Interfaces\ColorInterface; class Border { @@ -10,17 +11,17 @@ class Border protected int $width; protected string $color; - public function color(Color $color): self + public function color(ColorInterface $color): self { $this->color = $color; return $this; } - public function getColor(): Color + public function getColor(): ColorInterface { return Color::create($this->color); } - + public function position(BorderPosition $position): self { $this->position = $position;