Skip to content

Commit 85ed545

Browse files
PWA-1938: Fixing static test failure
1 parent 65e2728 commit 85ed545

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/code/Magento/GraphQlCache/Model/Plugin/Auth/TokenIssuer.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Magento\Authorization\Model\UserContextInterface;
1111
use Magento\GraphQl\Model\Query\ContextFactoryInterface;
1212
use Magento\Integration\Api\UserTokenIssuerInterface;
13-
use Magento\Integration\Model\CustomUserContext;
1413

1514
/**
1615
* Load the shared UserContext with data for the new user after a token is generated

app/code/Magento/GraphQlCache/Model/Plugin/Auth/TokenRevoker.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
use Magento\Authorization\Model\UserContextInterface;
1111
use Magento\GraphQl\Model\Query\ContextFactoryInterface;
12+
use Magento\Integration\Api\UserTokenRevokerInterface;
1213
use Magento\Integration\Model\CustomUserContext;
1314

1415
/**
@@ -32,9 +33,12 @@ public function __construct(ContextFactoryInterface $contextFactory)
3233
/**
3334
* Reset the shared user context to guest after a token is revoked
3435
*
36+
* @param UserTokenRevokerInterface $revoker
3537
* @return void
38+
*
39+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
3640
*/
37-
public function afterRevokeFor(): void
41+
public function afterRevokeFor(UserTokenRevokerInterface $revoker): void
3842
{
3943
$this->contextFactory->create(new CustomUserContext(0, UserContextInterface::USER_TYPE_GUEST));
4044
}

0 commit comments

Comments
 (0)