Skip to content

Commit 05d5bb3

Browse files
minor #59563 [SecurityBundle] Make data provider static (alexandre-daubois)
This PR was merged into the 7.3 branch. Discussion ---------- [SecurityBundle] Make data provider static | Q | A | ------------- | --- | Branch? | 7.3 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Data providers should always be static. Commits ------- a3c73f8 [SecurityBundle] Make data provider static
2 parents 8c941de + a3c73f8 commit 05d5bb3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Symfony/Bundle/SecurityBundle/Tests/Functional/AccessTokenTest.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ public function testCasSuccess()
425425
$this->assertSame(['message' => 'Welcome @dunglas!'], json_decode($response->getContent(), true));
426426
}
427427

428-
public function validAccessTokens(): array
428+
public static function validAccessTokens(): array
429429
{
430430
if (!\extension_loaded('openssl')) {
431431
return [];
@@ -440,8 +440,8 @@ public function validAccessTokens(): array
440440
'sub' => 'e21bf182-1538-406e-8ccb-e25a17aba39f',
441441
'username' => 'dunglas',
442442
];
443-
$jws = $this->createJws($claims);
444-
$jwe = $this->createJwe($jws);
443+
$jws = self::createJws($claims);
444+
$jwe = self::createJwe($jws);
445445

446446
return [
447447
[$jws],

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy