From 310940ed59bbdf85cd035e462de78ae8becf978a Mon Sep 17 00:00:00 2001 From: IanM <16573496+imorland@users.noreply.github.com> Date: Wed, 21 Jun 2023 14:09:24 +0100 Subject: [PATCH] Use `AccessTokenInterface` --- src/Events/OAuthLoginSuccessful.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Events/OAuthLoginSuccessful.php b/src/Events/OAuthLoginSuccessful.php index 500bbbc..e7c85aa 100644 --- a/src/Events/OAuthLoginSuccessful.php +++ b/src/Events/OAuthLoginSuccessful.php @@ -13,14 +13,14 @@ use Flarum\User\User; use League\OAuth2\Client\Provider\ResourceOwnerInterface; -use League\OAuth2\Client\Token\AccessToken; +use League\OAuth2\Client\Token\AccessTokenInterface; class OAuthLoginSuccessful { /** * The access token provided by the service. * - * @var AccessToken + * @var AccessTokenInterface */ public $token; @@ -54,7 +54,7 @@ class OAuthLoginSuccessful */ public $actor; - public function __construct(AccessToken $token, ResourceOwnerInterface $userResource, string $providerName, string $identifier, ?User $actor) + public function __construct(AccessTokenInterface $token, ResourceOwnerInterface $userResource, string $providerName, string $identifier, ?User $actor) { $this->token = $token; $this->userResource = $userResource;