mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-05 23:15:50 +01:00
Improved typing and phpdoc type annotations
This commit is contained in:
@@ -139,9 +139,9 @@ class U2FKey implements LegacyU2FKeyInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the user, this U2F key belongs to.
|
||||
* Gets the user, this U2F key belongs to.
|
||||
*/
|
||||
public function getUser(): User
|
||||
public function getUser(): User|null
|
||||
{
|
||||
return $this->user;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user