Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Minor
-
Resolution: Duplicate
-
Affects Version/s: 1.9.1
-
Fix Version/s: 1.10.0
-
Component/s: Zend_Validate
-
Labels:None
Description
I dont understand why isValid method should only accept primitive types (string, float, integer), therefore refuses to validate class instances, even if the class has _toString() method implemented. For example I want validate Zend_Date instance and have to pass $date->_toString() instead.
The only type which should not be accepted is array, but IMHO this type of parameter checking is useless and only confusing.
Issue Links
| This issue duplicates: | ||||
| ZF-7630 | Zend_Validate_Date doesn't accept Zend_Date object |
|
|
|
Closed as duplicate