mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-26 03:38:47 +02:00
Fixed some more phpstan issues
This commit is contained in:
parent
2f46fbfc7a
commit
e8771ea118
77 changed files with 192 additions and 109 deletions
|
@ -43,25 +43,25 @@ class U2FKey implements LegacyU2FKeyInterface
|
|||
* @var string
|
||||
**/
|
||||
#[ORM\Column(type: Types::STRING, length: 128)]
|
||||
public string $keyHandle;
|
||||
public string $keyHandle = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
**/
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
public string $publicKey;
|
||||
public string $publicKey = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
**/
|
||||
#[ORM\Column(type: Types::TEXT)]
|
||||
public string $certificate;
|
||||
public string $certificate = '';
|
||||
|
||||
/**
|
||||
* @var int
|
||||
* @var string
|
||||
**/
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
public int $counter;
|
||||
public string $counter = '0';
|
||||
|
||||
#[ORM\Id]
|
||||
#[ORM\Column(type: Types::INTEGER)]
|
||||
|
@ -72,7 +72,7 @@ class U2FKey implements LegacyU2FKeyInterface
|
|||
* @var string
|
||||
**/
|
||||
#[ORM\Column(type: Types::STRING)]
|
||||
protected string $name;
|
||||
protected string $name = '';
|
||||
|
||||
#[ORM\ManyToOne(targetEntity: User::class, inversedBy: 'u2fKeys')]
|
||||
protected ?User $user = null;
|
||||
|
@ -114,7 +114,7 @@ class U2FKey implements LegacyU2FKeyInterface
|
|||
return $this;
|
||||
}
|
||||
|
||||
public function getCounter(): int
|
||||
public function getCounter(): string
|
||||
{
|
||||
return $this->counter;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue