Skip to content

Commit 4879ff4

Browse files
committed
TAK: Fix return types for the color converter functions
1 parent a4be956 commit 4879ff4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Classes/Domain/ValueObject/HslaColor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ private function hue2rgb(float $p, float $q, float $t): float
146146
/**
147147
* @return HslaColor
148148
*/
149-
public function asHsla(): self
149+
public function asHsla(): HslaColor
150150
{
151151
return $this;
152152
}

Classes/Domain/ValueObject/RgbaColor.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function getAlpha(): float
9292
/**
9393
* @return RgbaColor
9494
*/
95-
public function asRgba(): self
95+
public function asRgba(): RgbaColor
9696
{
9797
return $this;
9898
}

0 commit comments

Comments
 (0)