Skip to content

Commit

Permalink
Use AccessTokenInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland authored Jun 21, 2023
1 parent 9f2c74c commit 310940e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Events/OAuthLoginSuccessful.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 310940e

Please sign in to comment.