Skip to content

Commit b22d017

Browse files
authored
Merge pull request #18 from roli85/2.9-PHP-8.1
changed return type of dispatchEvent to accept ResponseInterface also
2 parents 0cfded7 + 254e812 commit b22d017

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
}
1111
],
1212
"require": {
13-
"php": "~8.0.0 || ~8.1.0 || ~8.2.0",
13+
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
1414
"psr/http-message": "^1.0 || ^2.0",
1515
"laminas/laminas-servicemanager": "^3.21.0",
1616
"dotkernel/dot-authentication": "^2.3.0",

src/Event/DispatchAuthenticationEventTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ trait DispatchAuthenticationEventTrait
2828
* @param null $target
2929
* @return AuthenticationEvent|mixed
3030
*/
31-
public function dispatchEvent(string $name, array $params = [], mixed $target = null): Event|ResponseCollection
31+
public function dispatchEvent(string $name, array $params = [], mixed $target = null): Event|ResponseCollection|ResponseInterface
3232
{
3333
if ($target === null) {
3434
$target = $this;

0 commit comments

Comments
 (0)