Skip to content

Commit 1a1b43a

Browse files
Merge Development into Matser (#2)
* Add [SensitiveParameter] to $apiKey
1 parent af174fe commit 1a1b43a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Client.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ class Client
5353
* @param TempNumberServer $backendServer
5454
*/
5555
public function __construct(
56+
#[\SensitiveParameter]
5657
string $apiKey,
5758
?HttpClientInterface $httpClient = null,
5859
TempNumberServer $backendServer = TempNumberServer::Production
@@ -68,7 +69,7 @@ public function __construct(
6869
* @param string $apiKey
6970
* @return void
7071
*/
71-
public function setApiKey(string $apiKey): void
72+
public function setApiKey(#[\SensitiveParameter] string $apiKey): void
7273
{
7374
$this->applyHttpClientOptions([
7475
'headers' => [

0 commit comments

Comments
 (0)