8000 modify return value CsrfTokenManager · symfony/symfony@4825474 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4825474

Browse files
committed
modify return value CsrfTokenManager
1 parent 72ff106 commit 4825474

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ interface CsrfTokenManagerInterface
3030
*
3131
* @return CsrfToken The CSRF token
3232
*/
33-
public function getToken(string $tokenId): CsrfToken;
33+
public function getToken(string $tokenId): string;
3434

3535
/**
3636
* Generates a new token value for the given ID.
@@ -44,7 +44,7 @@ public function getToken(string $tokenId): CsrfToken;
4444
*
4545
* @return CsrfToken The CSRF token
4646
*/
47-
public function refreshToken(string $tokenId): CsrfToken;
47+
public function refreshToken(string $tokenId): string;
4848

4949
/**
5050
* Invalidates the CSRF token with the given ID, if one exists.

0 commit comments

Comments
 (0)
0