Issues

ZF-7677: Zend_Validate_Date can not validate class (Zend_Date) instance

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.

Comments

Closed as duplicate