From 605e96b1cbadc1c53fcc6340fede19f406b5feb6 Mon Sep 17 00:00:00 2001 From: Eric Boot Date: Thu, 20 May 2021 12:27:39 +0200 Subject: [PATCH] ScopeResolveEvent's property $userIdentifier could be anything according to League\OAuth2\Server\Entities\UserEntityInterface --- Event/ScopeResolveEvent.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Event/ScopeResolveEvent.php b/Event/ScopeResolveEvent.php index 6f45c0a6..0cb42d62 100644 --- a/Event/ScopeResolveEvent.php +++ b/Event/ScopeResolveEvent.php @@ -27,11 +27,11 @@ final class ScopeResolveEvent extends Event private $client; /** - * @var string|null + * @var mixed|null */ private $userIdentifier; - public function __construct(array $scopes, Grant $grant, Client $client, ?string $userIdentifier) + public function __construct(array $scopes, Grant $grant, Client $client, $userIdentifier) { $this->scopes = $scopes; $this->grant = $grant; @@ -64,7 +64,7 @@ public function getClient(): Client return $this->client; } - public function getUserIdentifier(): ?string + public function getUserIdentifier() { return $this->userIdentifier; }