Skip to content

Commit beda6b2

Browse files
authored
Merge pull request #16 from PopNatanael/2.9-PHP-8.1
Potential fix for dot-controller compatibility issue
2 parents 83aa9b3 + 4fe8879 commit beda6b2

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/Event/DispatchAuthenticationEventTrait.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99

1010
namespace Dot\Authentication\Web\Event;
1111

12+
use Dot\Event\Event;
13+
use Laminas\EventManager\ResponseCollection;
1214
use Psr\Http\Message\ResponseInterface;
1315
use Laminas\EventManager\EventManagerAwareTrait;
1416

@@ -26,7 +28,7 @@ trait DispatchAuthenticationEventTrait
2628
* @param null $target
2729
* @return AuthenticationEvent|mixed
2830
*/
29-
public function dispatchEvent(string $name, array $params = [], $target = null)
31+
public function dispatchEvent(string $name, array $params = [], mixed $target = null): Event|ResponseCollection
3032
{
3133
if ($target === null) {
3234
$target = $this;

0 commit comments

Comments
 (0)