mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-23 18:28:49 +02:00
Fixed some deprecations related to missing return types
This commit is contained in:
parent
eb24aa2e68
commit
294f7cf005
11 changed files with 20 additions and 21 deletions
|
@ -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 [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue