Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 79a2a0a

Browse filesBrowse files
author
julien57
committed
removed return values
1 parent 80e28a0 commit 79a2a0a
Copy full SHA for 79a2a0a

File tree

2 files changed

+6
-6
lines changed
Filter options

2 files changed

+6
-6
lines changed

‎src/Symfony/Component/Security/Csrf/CsrfTokenManager.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Csrf/CsrfTokenManager.php
+3-3Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function __construct(TokenGeneratorInterface $generator = null, TokenStor
6666
/**
6767
* {@inheritdoc}
6868
*/
69-
public function getToken($tokenId)
69+
public function getToken(string $tokenId)
7070
{
7171
$namespacedId = $this->getNamespace().$tokenId;
7272
if ($this->storage->hasToken($namespacedId)) {
@@ -83,7 +83,7 @@ public function getToken($tokenId)
8383
/**
8484
* {@inheritdoc}
8585
*/
86-
public function refreshToken($tokenId)
86+
public function refreshToken(string $tokenId)
8787
{
8888
$namespacedId = $this->getNamespace().$tokenId;
8989
$value = $this->generator->generateToken();
@@ -96,7 +96,7 @@ public function refreshToken($tokenId)
9696
/**
9797
* {@inheritdoc}
9898
*/
99-
public function removeToken($tokenId)
99+
public function removeToken(string $tokenId)
100100
{
101101
return $this->storage->removeToken($this->getNamespace().$tokenId);
102102
}

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Security/Csrf/CsrfTokenManagerInterface.php
+3-3Lines changed: 3 additions & 3 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($tokenId);
33+
public function getToken(string $tokenId);
3434

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

4949
/**
5050
* Invalidates the CSRF token with the given ID, if one exists.
@@ -54,7 +54,7 @@ public function refreshToken($tokenId);
5454
* @return string|null Returns the removed token value if one existed, NULL
5555
* otherwise
5656
*/
57-
public function removeToken($tokenId);
57+
public function removeToken(string $tokenId);
5858

5959
/**
6060
* Returns whether the given CSRF token is valid.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.