Skip to content

Commit 4fe8879

Browse files
committed
Potential fix for do-tcontroller compatibility issue
1 parent 83aa9b3 commit 4fe8879

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)