+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id: $
*
*/
case 'Integer':
case 'Int':
if (CRM_Utils_Rule::integer($data)) {
- return $data;
+ return (int) $data;
}
break;
}
/**
- * Verify that a variable is of a given type
+ * Verify that a variable is of a given type.
*
* @param mixed $data
* The value to validate.
case 'Integer':
case 'Int':
if (CRM_Utils_Rule::integer($data)) {
- return $data;
+ return (int) $data;
}
break;