Skip to content

Commit a0f32dc

Browse files
committed
* Fix Psalm errors
1 parent d42ad3c commit a0f32dc

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

src/Exception/OAuthException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
/**
1010
* Represents errors during OAuth protocol.
1111
*/
12-
class OAuthException extends RuntimeException implements OAuthExceptionInterface
12+
final class OAuthException extends RuntimeException implements OAuthExceptionInterface
1313
{
1414
}

src/GrantType/AuthorizationCodeGrantType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Implementation of the OAuth authorization grant type.
1212
*/
13-
class AuthorizationCodeGrantType implements RefreshableGrantTypeInterface
13+
final class AuthorizationCodeGrantType implements RefreshableGrantTypeInterface
1414
{
1515
use TokensExtractor;
1616

@@ -50,6 +50,7 @@ public function __construct(
5050
*
5151
* @throws TransportExceptionInterface
5252
*/
53+
#[\Override]
5354
public function getTokens(): Tokens
5455
{
5556
$response = $this->client->request('POST', $this->tokenUrl, [
@@ -64,6 +65,7 @@ public function getTokens(): Tokens
6465
return $this->extractTokens($response);
6566
}
6667

68+
#[\Override]
6769
public function getRefreshTokenGrant(string $refreshToken): GrantTypeInterface
6870
{
6971
return new RefreshTokenGrantType($this->client, $this->tokenUrl, $refreshToken, $this->clientId, $this->clientSecret);

src/GrantType/ClientCredentialsGrantType.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Implementation of the OAuth client credentials grant type.
1212
*/
13-
class ClientCredentialsGrantType implements GrantTypeInterface
13+
final class ClientCredentialsGrantType implements GrantTypeInterface
1414
{
1515
use TokensExtractor;
1616

@@ -45,6 +45,7 @@ public function __construct(
4545
*
4646
* @throws TransportExceptionInterface
4747
*/
48+
#[\Override]
4849
public function getTokens(): Tokens
4950
{
5051
$response = $this->client->request('POST', $this->tokenUrl, [

src/GrantType/PasswordGrantType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
/**
1111
* Implementation of the OAuth password grant type.
1212
*/
13-
class PasswordGrantType implements GrantTypeInterface
13+
final class PasswordGrantType implements GrantTypeInterface
1414
{
1515
use TokensExtractor;
1616

0 commit comments

Comments
 (0)