Skip to content

Commit

Permalink
Add [SensitiveParameter] to $apiKey
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmedghanem00 committed Aug 10, 2023
1 parent af0a1d4 commit 44a3afa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ class Client
* @param TempNumberServer $backendServer
*/
public function __construct(
#[\SensitiveParameter]
string $apiKey,
?HttpClientInterface $httpClient = null,
TempNumberServer $backendServer = TempNumberServer::Production
Expand All @@ -68,7 +69,7 @@ public function __construct(
* @param string $apiKey
* @return void
*/
public function setApiKey(string $apiKey): void
public function setApiKey(#[\SensitiveParameter] string $apiKey): void
{
$this->applyHttpClientOptions([
'headers' => [
Expand Down

0 comments on commit 44a3afa

Please sign in to comment.