Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Validate
-
Labels:None
Description
self::INVALID is set to "Invalid type given, value should be float, string, array, boolean or integer", but it is reported for "" string, 0 integer, 0.0 float, array().
"" is an empty string, but it is a string. 0 is an integer etc. so the message is plainly wrong.
It should be self::IS_EMPTY => "Value is required and can't be empty".
Here's a patch that fixes this.