Fixed some deprecations related to missing return types

This commit is contained in:
Jan Böhmer 2023-10-25 17:27:37 +02:00
parent eb24aa2e68
commit 294f7cf005
11 changed files with 20 additions and 21 deletions

View file

@ -135,17 +135,17 @@ class OAuthToken extends AbstractNamedDBElement implements AccessTokenInterface
$this->expires_at = self::unixTimestampToDatetime($accessToken->getExpires() ?? time() + self::DEFAULT_EXPIRATION_TIME);
}
public function getExpires()
public function getExpires(): ?int
{
return $this->expires_at->getTimestamp();
}
public function hasExpired()
public function hasExpired(): bool
{
return $this->isExpired();
}
public function getValues()
public function getValues(): array
{
return [];
}