Skip to content

Commit c06f514

Browse files
authored
feature #310 [generator] [1.x] userId argument should be either a string or int
1 parent c6f9694 commit c06f514

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Generator/ResetPasswordTokenGenerator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ public function __construct(string $signingKey, ResetPasswordRandomGenerator $ge
4040
/**
4141
* Get a cryptographically secure token with it's non-hashed components.
4242
*
43-
* @param mixed $userId Unique user identifier
44-
* @param string $verifier Only required for token comparison
43+
* @param int|string $userId Unique user identifier
44+
* @param ?string $verifier Only required for token comparison
4545
*/
4646
public function createToken(\DateTimeInterface $expiresAt, $userId, ?string $verifier = null): ResetPasswordTokenComponents
4747
{

0 commit comments

Comments
 (0)