From 6155b4ea9218a6786077455e5632f02c1bf148aa Mon Sep 17 00:00:00 2001 From: Roli Date: Thu, 21 Mar 2024 15:07:39 +0200 Subject: [PATCH 1/2] changed return type of dispatchEvent to accept ResponseInterface also --- src/Event/DispatchAuthenticationEventTrait.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Event/DispatchAuthenticationEventTrait.php b/src/Event/DispatchAuthenticationEventTrait.php index 8701c1b..a7cbbd0 100644 --- a/src/Event/DispatchAuthenticationEventTrait.php +++ b/src/Event/DispatchAuthenticationEventTrait.php @@ -28,7 +28,7 @@ trait DispatchAuthenticationEventTrait * @param null $target * @return AuthenticationEvent|mixed */ - public function dispatchEvent(string $name, array $params = [], mixed $target = null): Event|ResponseCollection + public function dispatchEvent(string $name, array $params = [], mixed $target = null): Event|ResponseCollection|ResponseInterface { if ($target === null) { $target = $this; From 254e812b15a5cacf9555d051aac7efa001db8912 Mon Sep 17 00:00:00 2001 From: Roli Date: Thu, 21 Mar 2024 15:49:33 +0200 Subject: [PATCH 2/2] changing required php version --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 26ccbc2..5d09f71 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "~8.0.0 || ~8.1.0 || ~8.2.0", + "php": "~8.1.0 || ~8.2.0 || ~8.3.0", "psr/http-message": "^1.0 || ^2.0", "laminas/laminas-servicemanager": "^3.21.0", "dotkernel/dot-authentication": "^2.3.0",