Details
-
Type:
Improvement
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: None
-
Fix Version/s: 1.9.0
-
Component/s: Zend_Filter
-
Labels:None
-
Fix Version Priority:Nice to Have
Description
@version $Id: Inflector.php 7078 2007-12-11 14:29:33Z matthew $
Zend_Filter_Inflector method 'filter' needs at least one param ($source).
If you define only 'static' rules (without, for example, default ':' prefix) and set value to each one and you don't need to replace it with a $source array you should call 'filter' method without param.
Sure, as workaround you can call filter(null), filter(array()), ...
Actual code:
public function filter($source)
{
[...]
}
Proposed code:
public function filter($source = null) { [...] }
Please evaluate and categorize/assign as necessary.