Open tomolimo opened 9 years ago
Hello,
I'm sure you have figured this one out by now, but for the future reference of other users, this can be done by passing an argument array to callOriginal
:
public static function patchworkMyFunction($type, $options) {
return Patchwork\callOriginal([-1, $options]);
}
The idea is to have the possibility to alter a parameter before calling the original method. I found this working:
But not this
And not this:
Could you advise or comment? Thank you, Regards, Tomolimo