diff --git a/core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php b/core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php index f7aaaa3525..b51b17138b 100644 --- a/core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php +++ b/core/modules/basic_auth/tests/src/Traits/BasicAuthTestTrait.php @@ -22,7 +22,7 @@ trait BasicAuthTestTrait { * @return string * The retrieved HTML string, also available as $this->getRawContent(). */ - protected function basicAuthGet($path, $username, #[\SensitiveParameter] $password, array $options = []) { + protected function basicAuthGet($path, $username, $password, array $options = []) { return $this->drupalGet($path, $options, $this->getBasicAuthHeaders($username, $password)); } @@ -37,7 +37,7 @@ protected function basicAuthGet($path, $username, #[\SensitiveParameter] $passwo * @return array * An array of raw request headers as used by curl_setopt(). */ - protected function getBasicAuthHeaders($username, #[\SensitiveParameter] $password) { + protected function getBasicAuthHeaders($username, $password) { // Set up Curl to use basic authentication with the test user's credentials. return ['Authorization' => 'Basic ' . base64_encode("$username:$password")]; } diff --git a/core/modules/jsonapi/tests/src/Functional/UserTest.php b/core/modules/jsonapi/tests/src/Functional/UserTest.php index 6da9f685c3..f1b68d2253 100644 --- a/core/modules/jsonapi/tests/src/Functional/UserTest.php +++ b/core/modules/jsonapi/tests/src/Functional/UserTest.php @@ -318,7 +318,7 @@ public function testPatchDxForSecuritySensitiveBaseFields() { * * @internal */ - protected function assertRpcLogin(string $username, #[\SensitiveParameter] string $password): void { + protected function assertRpcLogin(string $username, string $password): void { $request_body = [ 'name' => $username, 'pass' => $password,