From 4879ff4a8fee3c501bb2eca5749764bf7940d065 Mon Sep 17 00:00:00 2001 From: Martin Ficzel Date: Thu, 9 Jul 2020 17:21:40 +0200 Subject: [PATCH] TAK: Fix return types for the color converter functions --- Classes/Domain/ValueObject/HslaColor.php | 2 +- Classes/Domain/ValueObject/RgbaColor.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Domain/ValueObject/HslaColor.php b/Classes/Domain/ValueObject/HslaColor.php index d5c4188..947ca4c 100644 --- a/Classes/Domain/ValueObject/HslaColor.php +++ b/Classes/Domain/ValueObject/HslaColor.php @@ -146,7 +146,7 @@ private function hue2rgb(float $p, float $q, float $t): float /** * @return HslaColor */ - public function asHsla(): self + public function asHsla(): HslaColor { return $this; } diff --git a/Classes/Domain/ValueObject/RgbaColor.php b/Classes/Domain/ValueObject/RgbaColor.php index 2c09198..c9a90df 100644 --- a/Classes/Domain/ValueObject/RgbaColor.php +++ b/Classes/Domain/ValueObject/RgbaColor.php @@ -92,7 +92,7 @@ public function getAlpha(): float /** * @return RgbaColor */ - public function asRgba(): self + public function asRgba(): RgbaColor { return $this; }