@@ -1281,11 +1281,13 @@ public function toString()
     /**
      * Get the underlying string value as an integer.
      *
+     * @param  int  $base
+     *
      * @return int
      */
-    public function toInteger()
+    public function toInteger($base = 10)
     {
-        return intval($this->value);
+        return intval($this->value, $base);
     }
 
     /**