You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.
The validate method of FilterPluginManager is useless in this case, because it checks for interface and if it not pass it checks for callable, but this breaks the contract because the callable doesn't implement the FilterInterface, so the filter method cannot be called. https://github.com/zendframework/zend-filter/blob/master/src/FilterPluginManager.php#L332
The text was updated successfully, but these errors were encountered:
Please recognize that all of us contributing are a) human and b) fallible when you open issues. I was, and still am, tempted to delete the issue based on this, as it's disrespectful to everyone involved. If you're unsure how to word issues, try the following: "Such-and-such commit has led to the following situation ...", which makes no judgment on those who have contributed, and instead only calls out the problem.
I will create a patch and an updated release shortly.
weierophinney
added a commit
to weierophinney/zend-filter
that referenced
this issue
Feb 8, 2016
What a mistake!
This commit introduces NumberFormat view helper instead of filter into the FilterPluginManager:
a053cea
So view helper is returned instead of filter:
https://github.com/zendframework/zend-filter/blob/master/src/FilterPluginManager.php#L16
https://github.com/zendframework/zend-filter/blob/master/src/FilterPluginManager.php#L263
The validate method of FilterPluginManager is useless in this case, because it checks for interface and if it not pass it checks for callable, but this breaks the contract because the callable doesn't implement the FilterInterface, so the filter method cannot be called.
https://github.com/zendframework/zend-filter/blob/master/src/FilterPluginManager.php#L332
The text was updated successfully, but these errors were encountered: