Skip to content

Commit

Permalink
Fixed wrong property type and name in EventDispatcher
Browse files Browse the repository at this point in the history
  • Loading branch information
yann-eugone committed Mar 6, 2021
1 parent 98ca0c1 commit 90b17a0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/EventDispatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 90b17a0

Please sign in to comment.