Skip to content

Commit 0b6714d

Browse files
GromNaNfabpot
authored andcommitted
Hide sensitive information with SensitiveParameter attribute
1 parent 4a05752 commit 0b6714d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

HttpOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function toArray(): array
3232
/**
3333
* @return $this
3434
*/
35-
public function setAuthBasic(string $user, string $password = ''): static
35+
public function setAuthBasic(string $user, #[\SensitiveParameter] string $password = ''): static
3636
{
3737
$this->options['auth_basic'] = $user;
3838

@@ -46,7 +46,7 @@ public function setAuthBasic(string $user, string $password = ''): static
4646
/**
4747
* @return $this
4848
*/
49-
public function setAuthBearer(string $token): static
49+
public function setAuthBearer(#[\SensitiveParameter] string $token): static
5050
{
5151
$this->options['auth_bearer'] = $token;
5252

0 commit comments

Comments
 (0)