Skip to content

Commit 58755b2

Browse files
committed
Add more #[\SensitiveParameter]
1 parent 2133c50 commit 58755b2

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

AccessToken/AccessTokenHandlerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ interface AccessTokenHandlerInterface
2424
/**
2525
* @throws AuthenticationException
2626
*/
27-
public function getUserIdentifierFrom(string $accessToken): string;
27+
public function getUserIdentifierFrom(#[\SensitiveParameter] string $accessToken): string;
2828
}

Authenticator/Passport/Badge/CsrfTokenBadge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class CsrfTokenBadge implements BadgeInterface
3333
* Using a different string for each authenticator improves its security.
3434
* @param string|null $csrfToken The CSRF token presented in the request, if any
3535
*/
36-
public function __construct(string $csrfTokenId, ?string $csrfToken)
36+
public function __construct(string $csrfTokenId, #[\SensitiveParameter] ?string $csrfToken)
3737
{
3838
$this->csrfTokenId = $csrfTokenId;
3939
$this->csrfToken = $csrfToken;

Authenticator/Passport/Badge/PasswordUpgradeBadge.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class PasswordUpgradeBadge implements BadgeInterface
3232
* @param string $plaintextPassword The presented password, used in the rehash
3333
* @param PasswordUpgraderInterface|null $passwordUpgrader The password upgrader, defaults to the UserProvider if null
3434
*/
35-
public function __construct(string $plaintextPassword, PasswordUpgraderInterface $passwordUpgrader = null)
35+
public function __construct(#[\SensitiveParameter] string $plaintextPassword, PasswordUpgraderInterface $passwordUpgrader = null)
3636
{
3737
$this->plaintextPassword = $plaintextPassword;
3838
$this->passwordUpgrader = $passwordUpgrader;

0 commit comments

Comments
 (0)