From 90b17a0ff374de060a8ec7d2e590557fbaa14dd8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yann=20Eugon=C3=A9?= Date: Sat, 6 Mar 2021 15:04:10 +0100 Subject: [PATCH] Fixed wrong property type and name in EventDispatcher --- src/EventDispatcher.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/EventDispatcher.php b/src/EventDispatcher.php index 9d32293..00de717 100644 --- a/src/EventDispatcher.php +++ b/src/EventDispatcher.php @@ -34,15 +34,15 @@ public function __construct(EventDispatcherInterface $eventDispatcher) /** * @param string $purpose - * @param string $value + * @param mixed $user * @param array $payload * * @return CreateTokenEvent */ - public function createToken(string $purpose, string $value, array $payload): CreateTokenEvent + public function createToken(string $purpose, string $user, array $payload): CreateTokenEvent { $this->eventDispatcher->dispatch( - $event = new CreateTokenEvent($purpose, $value, $payload) + $event = new CreateTokenEvent($purpose, $user, $payload) ); return $event;