diff --git a/src/HSL.php b/src/HSL.php index 734f73d..b7b652e 100644 --- a/src/HSL.php +++ b/src/HSL.php @@ -154,7 +154,7 @@ public static function rgbToHSL(float $red, float $green, float $blue): array */ public static function hslToRgb(float $hue, float $saturation, float $lightness): array { - $h = ((360 + ($hue % 360)) % 360) / 360; + $h = ((360 + (intval($hue) % 360)) % 360) / 360; $s = $saturation / 100; $l = $lightness / 100;