Skip to content

Commit 761f4cc

Browse files
Type the autentication provider passwords as nullable strings
For historic reasons we couldn't add a nullable type hint before nullable type hints were supported by our target php versions. This is now possible. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
1 parent c1e7f6e commit 761f4cc

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

lib/private/Authentication/Token/DefaultTokenProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public function __construct(DefaultTokenMapper $mapper,
8585
public function generateToken(string $token,
8686
string $uid,
8787
string $loginName,
88-
$password,
88+
?string $password,
8989
string $name,
9090
int $type = IToken::TEMPORARY_TOKEN,
9191
int $remember = IToken::DO_NOT_REMEMBER): IToken {

lib/private/Authentication/Token/IProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ interface IProvider {
5353
public function generateToken(string $token,
5454
string $uid,
5555
string $loginName,
56-
$password,
56+
?string $password,
5757
string $name,
5858
int $type = IToken::TEMPORARY_TOKEN,
5959
int $remember = IToken::DO_NOT_REMEMBER): IToken;

lib/private/Authentication/Token/PublicKeyTokenProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function __construct(PublicKeyTokenMapper $mapper,
8080
public function generateToken(string $token,
8181
string $uid,
8282
string $loginName,
83-
$password,
83+
?string $password,
8484
string $name,
8585
int $type = IToken::TEMPORARY_TOKEN,
8686
int $remember = IToken::DO_NOT_REMEMBER): IToken {

0 commit comments

Comments
 (0)