From eb6eed22999b9521df0208ee16eeb5e250978b13 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sun, 27 Sep 2015 14:28:14 -0400 Subject: [PATCH] Add unit tests for CRM_Utils_Type --- CRM/Utils/Type.php | 1 + 1 file changed, 1 insertion(+) diff --git a/CRM/Utils/Type.php b/CRM/Utils/Type.php index 5e12acd9ba..aa761b1338 100644 --- a/CRM/Utils/Type.php +++ b/CRM/Utils/Type.php @@ -180,6 +180,7 @@ class CRM_Utils_Type { if (!CRM_Utils_Rule::positiveInteger($item)) { $valid = FALSE; } + $item = (int) $item; } if ($valid) { return $data; -- 2.25.1