From 0b0737f533a23b9bec83c60f1e9bc90d8224848f Mon Sep 17 00:00:00 2001 From: fadrian06 Date: Fri, 14 Aug 2026 02:50:07 -0400 Subject: [PATCH] remove $this of return type, it's incompatible with self return type --- flight/core/Dispatcher.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/flight/core/Dispatcher.php b/flight/core/Dispatcher.php index 830af52..f0de6c7 100644 --- a/flight/core/Dispatcher.php +++ b/flight/core/Dispatcher.php @@ -90,8 +90,6 @@ class Dispatcher * @param array &$params * * @throws Exception - * - * @return $this */ protected function runPreFilters(string $eventName, array &$params): self { @@ -145,8 +143,6 @@ class Dispatcher * * @param string $name Event name. * @param callable(): (void|mixed) $callback Callback function. - * - * @return $this */ public function set(string $name, callable $callback): self { @@ -202,8 +198,6 @@ class Dispatcher * @param string $name Event name * @param 'before'|'after' $type Filter type. * @param callable(array &$params, mixed &$output): (void|false)|callable(mixed &$output): (void|false) $callback - * - * @return $this */ public function hook(string $name, string $type, callable $callback): self { @@ -481,8 +475,6 @@ class Dispatcher /** * Resets the object to the initial state. - * - * @return $this */ public function reset(): self {