Skip to content

Commit

Permalink
Align PublicKeyToken with interface changes
Browse files Browse the repository at this point in the history
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
  • Loading branch information
come-nc committed Oct 23, 2023
1 parent f94fb33 commit 356f029
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions lib/private/Authentication/Token/PublicKeyToken.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,8 @@ public function getLoginName(): string {

/**
* Get the (encrypted) login password
*
* @return string|null
*/
public function getPassword() {
public function getPassword(): ?string {
return parent::getPassword();
}

Expand All @@ -165,10 +163,8 @@ public function getLastCheck(): int {

/**
* Get the timestamp of the last password check
*
* @param int $time
*/
public function setLastCheck(int $time) {
public function setLastCheck(int $time): void {
parent::setLastCheck($time);
}

Expand All @@ -191,7 +187,7 @@ public function getScopeAsArray(): array {
return $scope;
}

public function setScope($scope) {
public function setScope(mixed $scope): void {
if (is_array($scope)) {
parent::setScope(json_encode($scope));
} else {
Expand All @@ -211,15 +207,15 @@ public function getRemember(): int {
return parent::getRemember();
}

public function setToken(string $token) {
public function setToken(string $token): void {
parent::setToken($token);
}

public function setPassword(string $password = null) {
public function setPassword(string $password = null): void {
parent::setPassword($password);
}

public function setExpires($expires) {
public function setExpires($expires): void {
parent::setExpires($expires);
}

Expand Down

0 comments on commit 356f029

Please sign in to comment.