summaryrefslogtreecommitdiff
path: root/src/HookManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/HookManager.php')
-rw-r--r--src/HookManager.php4
1 files changed, 2 insertions, 2 deletions
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