From 9e08573896913f80c97c902c57959952e13b0212 Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Sun, 16 Aug 2026 00:58:04 -0400 Subject: [PATCH] rename Dispatcher namedFilteredCallables -> namedCallables --- flight/core/Dispatcher.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/flight/core/Dispatcher.php b/flight/core/Dispatcher.php index cd49555..c3d3a79 100644 --- a/flight/core/Dispatcher.php +++ b/flight/core/Dispatcher.php @@ -40,7 +40,7 @@ class Dispatcher protected array $events = []; /** @var array */ - private array $namedFilteredCallables = []; + private array $namedCallables = []; /** * @deprecated Don't use this property, use `hook()` instead. @@ -170,7 +170,7 @@ class Dispatcher public function set(string $name, callable $callback): self { $this->events[$name] = $callback; - $this->namedFilteredCallables[$name] = new FilteredCallable($callback); + $this->namedCallables[$name] = new FilteredCallable($callback); return $this; } @@ -183,7 +183,7 @@ class Dispatcher */ public function get(string $name): ?callable { - return $this->namedFilteredCallables[$name] ?? $this->events[$name] ?? null; + return $this->namedCallables[$name] ?? $this->events[$name] ?? null; } /** @@ -208,7 +208,7 @@ class Dispatcher if ($name !== null) { unset($this->events[$name]); unset($this->filters[$name]); - unset($this->namedFilteredCallables[$name]); + unset($this->namedCallables[$name]); return; } @@ -561,7 +561,7 @@ class Dispatcher { $this->events = []; $this->filters = []; - $this->namedFilteredCallables = []; + $this->namedCallables = []; return $this; }