From 0d76e2003c83d915a1fe9a11702bdb62d66b512d Mon Sep 17 00:00:00 2001 From: avantis Date: Mon, 18 Dec 2017 14:37:46 +0200 Subject: [PATCH] Update Validate.php --- src/Validate.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Validate.php b/src/Validate.php index 9f5b19a..40702dc 100644 --- a/src/Validate.php +++ b/src/Validate.php @@ -48,21 +48,21 @@ public static function isNumeric($type) } /** - * Checking that types from array matching with [boolean, integer, string, double] + * Checking that types from array matching with [boolean, integer, string, double, text, datetime] * @param array $types Indexed array * @return bool * @throws dbException */ public static function types(array $types) { - $defined = array('boolean', 'integer', 'string', 'double'); + $defined = array('boolean', 'integer', 'double', 'string', 'text', 'datetime'); $diff = array_diff($types, $defined); if (empty($diff)) { return TRUE; } - throw new dbException('Wrong types: "' . implode(', ', $diff) . '". Available "boolean, integer, string, double"'); + throw new dbException('Wrong types: "' . implode(', ', $diff) . '". Available "boolean, integer, double, string, text, datetime"'); } /**