Allow multiple arguments for applyHook (master branch)

Not using variadic due to PHP5.6+ only.