Skip to content
Snippets Groups Projects
Commit 1dd66ff8 authored by Reiter, Christoph's avatar Reiter, Christoph :snake:
Browse files

Add some missing nullable annotations

parent f5b89205
No related branches found
No related tags found
No related merge requests found
Pipeline #200795 passed
......@@ -17,7 +17,7 @@ class AuthorizationUser
$this->authorizationChecker = $authorizationChecker;
}
public function getIdentifier(): string
public function getIdentifier(): ?string
{
return $this->authorizationChecker->getCurrentUserIdentifier();
}
......
......@@ -14,7 +14,7 @@ class UserAuthorizationChecker
private const MAX_NUM_CALLS = 16;
/** @var string */
/** @var ?string */
private $currentUserIdentifier;
/** @var iterable */
......@@ -35,7 +35,7 @@ class UserAuthorizationChecker
/** @var int */
private $callCounter;
public function __construct(string $userIdentifier, AuthorizationDataProviderProvider $authorizationDataProviderProvider)
public function __construct(?string $userIdentifier, AuthorizationDataProviderProvider $authorizationDataProviderProvider)
{
$this->currentUserIdentifier = $userIdentifier;
$this->authorizationDataProviders = $authorizationDataProviderProvider->getAuthorizationDataProviders();
......@@ -58,7 +58,7 @@ class UserAuthorizationChecker
$this->callCounter = 0;
}
public function getCurrentUserIdentifier(): string
public function getCurrentUserIdentifier(): ?string
{
return $this->currentUserIdentifier;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment