Allow multiple arguments for applyHook

Not using variadic due to PHP5.6+ only.