From fdad13d631788feae609205da5236681e1f43e3d Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Sun, 9 Oct 2016 14:30:29 +0100 Subject: [PATCH] Fix trigger function --- src/Support/Action.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Support/Action.php b/src/Support/Action.php index 9b66fef..9aa9e3e 100644 --- a/src/Support/Action.php +++ b/src/Support/Action.php @@ -14,11 +14,11 @@ class Action * @param $tag * @param callable $function * @param int $priority - * @param int $accepted_args + * @param int $acceptedArgs */ - public static function hook($tag, callable $function, $priority = 10, $accepted_args = 1) + public static function hook($tag, callable $function, $priority = 10, $acceptedArgs = 1) { - add_filter($tag, $function, $priority, $accepted_args); + add_filter($tag, $function, $priority, $acceptedArgs); } /** @@ -42,6 +42,6 @@ class Action */ public static function trigger($tag, ...$params) { - return do_action($tag, $params); + return do_action($tag, ...$params); } } -- libgit2 1.7.2