Closed auroraeosrose closed 9 years ago
@auroraeosrose I hope you are using the 2.x branch ? .
yes
May be you could send a PR, so Paul could look and merge.
Thank you.
Good call. Would we be ok renaming the classes from (Sanitize|Validate)\Closure
to `(Sanitize|Validate)\Callback
in line with that change?
@auroraeosrose ^
callback or callable? ah naming things - doesn't matter too much
Callable is reserved, so callback. I take that to mean a rename in general is not a problem.
The closure filtering is typehinting using Closure, this means that callable methods or functions from elsewhere cannot be used
Using the Callable typehint instead (available since 5.4) would allow any legal callable to be used instead (and would require no code changes except the typehint)