Skip to content

Commit

Permalink
TAK: Fix return types for the color converter functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mficzel committed Jul 9, 2020
1 parent a4be956 commit 4879ff4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Domain/ValueObject/HslaColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion Classes/Domain/ValueObject/RgbaColor.php
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ public function getAlpha(): float
/**
* @return RgbaColor
*/
public function asRgba(): self
public function asRgba(): RgbaColor
{
return $this;
}
Expand Down

0 comments on commit 4879ff4

Please sign in to comment.