mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-02 06:24:34 +02:00
Fixed some deprecations.
This commit is contained in:
parent
4fa8eef1bf
commit
5fd608f42a
59 changed files with 202 additions and 165 deletions
|
@ -120,11 +120,12 @@ class U2FKey implements TwoFactorKeyInterface
|
|||
$this->counter = $data->counter;
|
||||
}
|
||||
|
||||
public function getKeyHandle()
|
||||
public function getKeyHandle(): string
|
||||
{
|
||||
return $this->keyHandle;
|
||||
}
|
||||
|
||||
|
||||
public function setKeyHandle($keyHandle): self
|
||||
{
|
||||
$this->keyHandle = $keyHandle;
|
||||
|
@ -132,7 +133,7 @@ class U2FKey implements TwoFactorKeyInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getPublicKey()
|
||||
public function getPublicKey(): string
|
||||
{
|
||||
return $this->publicKey;
|
||||
}
|
||||
|
@ -144,7 +145,7 @@ class U2FKey implements TwoFactorKeyInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getCertificate()
|
||||
public function getCertificate(): string
|
||||
{
|
||||
return $this->certificate;
|
||||
}
|
||||
|
@ -156,7 +157,7 @@ class U2FKey implements TwoFactorKeyInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getCounter()
|
||||
public function getCounter(): int
|
||||
{
|
||||
return $this->counter;
|
||||
}
|
||||
|
@ -168,7 +169,7 @@ class U2FKey implements TwoFactorKeyInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getName()
|
||||
public function getName(): string
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue