Skip to content

Commit 76edcad

Browse files
committed
Merge 'main' into 2.x
* main: feature #310 [generator] [1.x] userId argument should be either a string or int
2 parents dd214c5 + c06f514 commit 76edcad

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
@@ -33,8 +33,8 @@ public function __construct(
3333
/**
3434
* Get a cryptographically secure token with it's non-hashed components.
3535
*
36-
* @param mixed $userId Unique user identifier
37-
* @param string $verifier Only required for token comparison
36+
* @param int|string $userId Unique user identifier
37+
* @param ?string $verifier Only required for token comparison
3838
*/
3939
public function createToken(\DateTimeInterface $expiresAt, $userId, ?string $verifier = null): ResetPasswordTokenComponents
4040
{

0 commit comments

Comments
 (0)