Skip to content

Commit 6442866

Browse files
committed
fix(chore): cs
1 parent bd18468 commit 6442866

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ private function createAuthorizationServerNode(): NodeDefinition
108108
->defaultTrue()
109109
->end()
110110
->scalarNode('response_type_class')
111-
->info("Define a custom ResponseType")
111+
->info('Define a custom ResponseType')
112112
->defaultValue(null)
113113
->end()
114114
->end()

src/Model/RefreshToken.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class RefreshToken implements RefreshTokenInterface
2929
/**
3030
* @psalm-mutation-free
3131
*/
32-
public function __construct(string $identifier, \DateTimeInterface $expiry, AccessTokenInterface $accessToken = null)
32+
public function __construct(string $identifier, \DateTimeInterface $expiry, ?AccessTokenInterface $accessToken = null)
3333
{
3434
$this->identifier = $identifier;
3535
$this->expiry = $expiry;

src/Security/Authenticator/OAuth2Authenticator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ public function supports(Request $request): ?bool
7373
return str_starts_with($request->headers->get('Authorization', ''), 'Bearer ');
7474
}
7575

76-
public function start(Request $request, AuthenticationException $authException = null): Response
76+
public function start(Request $request, ?AuthenticationException $authException = null): Response
7777
{
7878
return new Response('', 401, ['WWW-Authenticate' => 'Bearer']);
7979
}

src/Security/Exception/InsufficientScopesException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
class InsufficientScopesException extends OAuth2AuthenticationException
1111
{
12-
public static function create(\Throwable $previous = null): self
12+
public static function create(?\Throwable $previous = null): self
1313
{
1414
return new self('Insufficient scopes.', 403, $previous);
1515
}

src/Security/Exception/OAuth2AuthenticationException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class OAuth2AuthenticationException extends AuthenticationException implements H
1717
*/
1818
private $statusCode;
1919

20-
public function __construct(string $message, int $statusCode, \Throwable $previous = null)
20+
public function __construct(string $message, int $statusCode, ?\Throwable $previous = null)
2121
{
2222
$this->statusCode = $statusCode;
2323

src/Security/Exception/OAuth2AuthenticationFailedException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
*/
1010
class OAuth2AuthenticationFailedException extends OAuth2AuthenticationException
1111
{
12-
public static function create(string $message, \Throwable $previous = null): self
12+
public static function create(string $message, ?\Throwable $previous = null): self
1313
{
1414
return new self($message, 401, $previous);
1515
}

tests/Acceptance/DoctrineCredentialsRevokerTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private function buildRefreshToken(string $identifier, string $modify, AccessTok
9090
);
9191
}
9292

93-
private function buildAccessToken(string $identifier, string $modify, Client $client, string $userIdentifier = null): AccessToken
93+
private function buildAccessToken(string $identifier, string $modify, Client $client, ?string $userIdentifier = null): AccessToken
9494
{
9595
return new AccessToken(
9696
$identifier,
@@ -101,7 +101,7 @@ private function buildAccessToken(string $identifier, string $modify, Client $cl
101101
);
102102
}
103103

104-
private function buildAuthCode(string $identifier, string $modify, Client $client, string $userIdentifier = null): AuthorizationCode
104+
private function buildAuthCode(string $identifier, string $modify, Client $client, ?string $userIdentifier = null): AuthorizationCode
105105
{
106106
return new AuthorizationCode(
107107
$identifier,

0 commit comments

Comments
 (0)