From 4fe8879fe28f1099ff2d09a57b5ee3ced0d55071 Mon Sep 17 00:00:00 2001 From: nati Date: Wed, 17 Jan 2024 12:32:38 +0200 Subject: [PATCH] Potential fix for do-tcontroller compatibility issue --- src/Event/DispatchAuthenticationEventTrait.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Event/DispatchAuthenticationEventTrait.php b/src/Event/DispatchAuthenticationEventTrait.php index b0f64c9..8701c1b 100644 --- a/src/Event/DispatchAuthenticationEventTrait.php +++ b/src/Event/DispatchAuthenticationEventTrait.php @@ -9,6 +9,8 @@ namespace Dot\Authentication\Web\Event; +use Dot\Event\Event; +use Laminas\EventManager\ResponseCollection; use Psr\Http\Message\ResponseInterface; use Laminas\EventManager\EventManagerAwareTrait; @@ -26,7 +28,7 @@ trait DispatchAuthenticationEventTrait * @param null $target * @return AuthenticationEvent|mixed */ - public function dispatchEvent(string $name, array $params = [], $target = null) + public function dispatchEvent(string $name, array $params = [], mixed $target = null): Event|ResponseCollection { if ($target === null) { $target = $this;