diff --git a/src/ColorRGB.php b/src/ColorRGB.php
index 73a265a..d24dd36 100644
--- a/src/ColorRGB.php
+++ b/src/ColorRGB.php
@@ -67,7 +67,7 @@ class ColorRGB extends ColorBase {
    *   The red value
    */
   public function getRed() {
-    return (0.5 + $this->red) | 0;
+    return \intval(0.5 + $this->red) | 0;
   }
 
   /**
@@ -77,7 +77,7 @@ class ColorRGB extends ColorBase {
    *   The green value
    */
   public function getGreen() {
-    return (0.5 + $this->green) | 0;
+    return \intval(0.5 + $this->green) | 0;
   }
 
   /**
@@ -87,7 +87,7 @@ class ColorRGB extends ColorBase {
    *   The blue value
    */
   public function getBlue() {
-    return (0.5 + $this->blue) | 0;
+    return \intval(0.5 + $this->blue) | 0;
   }
 
   /**
