Intervention allows you to pass closures as parameters to some functions (see the callback param). Doing so causes issues with cache filename generation, as PHP is unable to serialise/hash them properly.
This is a quick and dirty patch to strip any callables from the argument array before using it to generate the cache filename.
[edit] Apologies for the irritating whitespace changes: that’d be Atom trying to be useful, then… [/edit]
As promised a few weeks ago =)
Intervention allows you to pass closures as parameters to some functions (see the
callback
param). Doing so causes issues with cache filename generation, as PHP is unable to serialise/hash them properly. This is a quick and dirty patch to strip any callables from the argument array before using it to generate the cache filename.[edit] Apologies for the irritating whitespace changes: that’d be Atom trying to be useful, then… [/edit]