mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 23:15:50 +01:00
Fixed PHPstan issues for level 5.
This commit is contained in:
@@ -234,7 +234,7 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
|
||||
*/
|
||||
protected $attachments;
|
||||
|
||||
/** @var DateTime The time when the backup codes were generated
|
||||
/** @var DateTime|null The time when the backup codes were generated
|
||||
* @ORM\Column(type="datetime", nullable=true)
|
||||
*/
|
||||
protected $backupCodesGenerationDate;
|
||||
@@ -351,9 +351,9 @@ class User extends AttachmentContainingDBElement implements UserInterface, HasPe
|
||||
/**
|
||||
* @see UserInterface
|
||||
*/
|
||||
public function getSalt(): void
|
||||
public function getSalt(): ?string
|
||||
{
|
||||
// not needed when using the "bcrypt" algorithm in security.yaml
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user