Skip to content

Commit fa788ff

Browse files
Fix merge
1 parent 17fe51d commit fa788ff

8 files changed

+13
-13
lines changed

Tests/Authenticator/AccessToken/ChainedAccessTokenExtractorsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public function testSupport($request)
4848
$this->assertNull($this->authenticator->supports($request));
4949
}
5050

51-
public function provideSupportData(): iterable
51+
public static function provideSupportData(): iterable
5252
{
5353
yield [new Request([], [], [], [], [], ['HTTP_AUTHORIZATION' => 'Bearer VALID_ACCESS_TOKEN'])];
5454
yield [new Request([], [], [], [], [], ['HTTP_AUTHORIZATION' => 'Bearer INVALID_ACCESS_TOKEN'])];
@@ -77,7 +77,7 @@ public function testAuthenticateInvalid($request, $errorMessage, $exceptionType
7777
$this->authenticator->authenticate($request);
7878
}
7979

80-
public function provideInvalidAuthenticateData(): iterable
80+
public static function provideInvalidAuthenticateData(): iterable
8181
{
8282
$request = new Request();
8383
yield [$request, 'Invalid credentials.', BadCredentialsException::class];

Tests/Authenticator/AccessToken/FormEncodedBodyAccessTokenAuthenticatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public function testAuthenticateInvalid($request, $errorMessage, $exceptionType
9292
$this->authenticator->authenticate($request);
9393
}
9494

95-
public function provideInvalidAuthenticateData(): iterable
95+
public static function provideInvalidAuthenticateData(): iterable
9696
{
9797
$request = new Request();
9898
$request->setMethod(Request::METHOD_GET);

Tests/Authenticator/AccessToken/HeaderAccessTokenAuthenticatorTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function testSupport($request)
4545
$this->assertNull($this->authenticator->supports($request));
4646
}
4747

48-
public function provideSupportData(): iterable
48+
public static function provideSupportData(): iterable
4949
{
5050
yield [new Request([], [], [], [], [], ['HTTP_AUTHORIZATION' => 'Bearer VALID_ACCESS_TOKEN'])];
5151
yield [new Request([], [], [], [], [], ['HTTP_AUTHORIZATION' => 'Bearer INVALID_ACCESS_TOKEN'])];
@@ -61,7 +61,7 @@ public function testSupportsWithCustomTokenType($request, $result)
6161
$this->assertSame($result, $this->authenticator->supports($request));
6262
}
6363

64-
public function provideSupportsWithCustomTokenTypeData(): iterable
64+
public static function provideSupportsWithCustomTokenTypeData(): iterable
6565
{
6666
yield [new Request([], [], [], [], [], ['HTTP_AUTHORIZATION' => 'JWT VALID_ACCESS_TOKEN']), null];
6767
yield [new Request([], [], [], [], [], ['HTTP_AUTHORIZATION' => 'JWT INVALID_ACCESS_TOKEN']), null];
@@ -79,7 +79,7 @@ public function testSupportsWithCustomHeaderParameter($request, $result)
7979
$this->assertSame($result, $this->authenticator->supports($request));
8080
}
8181

82-
public function provideSupportsWithCustomHeaderParameter(): iterable
82+
public static function provideSupportsWithCustomHeaderParameter(): iterable
8383
{
8484
yield [new Request([], [], [], [], [], ['HTTP_X_FOO' => 'Bearer VALID_ACCESS_TOKEN']), null];
8585
yield [new Request([], [], [], [], [], ['HTTP_X_FOO' => 'Bearer INVALID_ACCESS_TOKEN']), null];
@@ -120,7 +120,7 @@ public function testAuthenticateInvalid($request, $errorMessage, $exceptionType
120120
$this->authenticator->authenticate($request);
121121
}
122122

123-
public function provideInvalidAuthenticateData(): iterable
123+
public static function provideInvalidAuthenticateData(): iterable
124124
{
125125
$request = new Request();
126126
yield [$request, 'Invalid credentials.', BadCredentialsException::class];

Tests/Authenticator/AccessToken/QueryAccessTokenAuthenticatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function testAuthenticateInvalid($request, $errorMessage, $exceptionType
8888
$this->authenticator->authenticate($request);
8989
}
9090

91-
public function provideInvalidAuthenticateData(): iterable
91+
public static function provideInvalidAuthenticateData(): iterable
9292
{
9393
$request = new Request();
9494
yield [$request, 'Invalid credentials.', BadCredentialsException::class];

Tests/Authenticator/JsonLoginAuthenticatorTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public function testAuthenticationForEmptyCredentialDeprecation($request)
142142
$this->authenticator->authenticate($request);
143143
}
144144

145-
public function provideEmptyAuthenticateData()
145+
public static function provideEmptyAuthenticateData()
146146
{
147147
$request = new Request([], [], [], [], [], ['HTTP_CONTENT_TYPE' => 'application/json'], '{"username": "", "password": "notempty"}');
148148
yield [$request];

Tests/EventListener/IsGrantedAttributeListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ public function testAccessDeniedMessages(string|Expression $attribute, string|ar
249249
}
250250
}
251251

252-
public function getAccessDeniedMessageTests()
252+
public static function getAccessDeniedMessageTests()
253253
{
254254
yield ['ROLE_ADMIN', null, 'admin', 0, 'Access Denied by #[IsGranted("ROLE_ADMIN")] on controller'];
255255
yield ['ROLE_ADMIN', 'bar', 'withSubject', 2, 'Access Denied by #[IsGranted("ROLE_ADMIN", "arg2Name")] on controller'];

Tests/Firewall/LogoutListenerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ public function testCsrfValidationFails($invalidToken)
163163
$listener(new RequestEvent($this->createMock(HttpKernelInterface::class), $request, HttpKernelInterface::MAIN_REQUEST));
164164
}
165165

166-
public function provideInvalidCsrfTokens(): array
166+
public static function provideInvalidCsrfTokens(): array
167167
{
168168
return [
169169
['invalid'],

Tests/HttpUtilsTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testCreateRedirectResponseWithBadRequestsDomain($url)
6969
$this->assertTrue($response->isRedirect('http://localhost/'));
7070
}
7171

72-
public function badRequestDomainUrls()
72+
public static function badRequestDomainUrls()
7373
{
7474
return [
7575
['http://pirate.net/foo'],
@@ -175,7 +175,7 @@ public function testCreateRequestPassesSecurityRequestAttributesToTheNewRequest(
175175
$this->assertSame('foo', $subRequest->attributes->get($attribute));
176176
}
177177

178-
public function provideSecurityRequestAttributes()
178+
public static function provideSecurityRequestAttributes()
179179
{
180180
return [
181181
[SecurityRequestAttributes::AUTHENTICATION_ERROR],

0 commit comments

Comments
 (0)