diff options
author | Daniel Weipert <code@drogueronin.de> | 2022-03-06 01:07:59 +0100 |
---|---|---|
committer | Daniel Weipert <code@drogueronin.de> | 2022-03-06 01:07:59 +0100 |
commit | ad83d1dafac62bb28fda004f86129319a5c3e2ca (patch) | |
tree | dcf119ae4159dcd13c5c3651e54b92e3f7cd4f80 /src/HookManager.php | |
parent | b2a86c7df7d5a473e80034832a01b21444fa50e6 (diff) |
Refactor fixes
Diffstat (limited to 'src/HookManager.php')
-rw-r--r-- | src/HookManager.php | 4 |
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 |