From ad83d1dafac62bb28fda004f86129319a5c3e2ca Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Sun, 6 Mar 2022 01:07:59 +0100 Subject: Refactor fixes --- src/HookManager.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/HookManager.php') diff --git a/src/HookManager.php b/src/HookManager.php index 96ca8d3..0f252c8 100644 --- a/src/HookManager.php +++ b/src/HookManager.php @@ -9,12 +9,12 @@ class HookManager public function addAction(string $name, callable $function, int $priority = 10): void { - $this->action[$name][$priority][] = compact('name', 'function', 'priority'); + $this->actions[$name][$priority][] = compact('name', 'function', 'priority'); } public function addFilter(string $name, callable $function, int $priority = 10): void { - $this->filters[$name][$priority][] = compact('name', 'callable', 'priority'); + $this->filters[$name][$priority][] = compact('name', 'function', 'priority'); } public function doAction(string $name, mixed ...$arguments): void -- cgit v1.2.3