Closed evanpurkhiser closed 10 years ago
This is functionally the same, eh? Why bother changing it?
I suppose just because it's slightly cleaner. Nothing to tag a new version over though.
Would you like me to target this at develop
while I'm at it as well?
Hey @zombor, I'm going through all my open PRs to see if I can get a resolution on them. Any chance of seeing this small change merged in? Or should I just go ahead and close it?
Sorry for the bother. Thanks!
I think I actually prefer the existing code, as it reveals it's intentions better.
@zombor Agree.
Thanks guys, appreciate the resolution!
The escape option must be of type
callable
, since the anonymous function was just calling theHTML::chars
method we can instead just pass an array representing this method and it will be seen as a callable typeSee: http://php.net/manual/en/language.types.callable.php