diff --git a/lib/Doctrine/Validator.php b/lib/Doctrine/Validator.php index b4c834e4a..fa572aa3e 100644 --- a/lib/Doctrine/Validator.php +++ b/lib/Doctrine/Validator.php @@ -272,9 +272,9 @@ class Doctrine_Validator extends Doctrine_Locator_Injectable switch ($type) { case 'float': case 'double': - return (String)$var == strval(floatval($var)); + return (string)$var == strval(floatval($var)); case 'integer': - return (String)$var == strval(intval($var)); + return (string)$var == strval(intval($var)); case 'string': return is_string($var) || is_int($var) || is_float($var); case 'blob':