From 1a1b43a64e0dc33a3970e9ba966912a85b1a5254 Mon Sep 17 00:00:00 2001 From: Ahmed Ghanem <124502255+ahmedghanem00@users.noreply.github.com> Date: Fri, 11 Aug 2023 02:16:07 +0300 Subject: [PATCH] Merge Development into Matser (#2) * Add [SensitiveParameter] to $apiKey --- src/Client.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Client.php b/src/Client.php index 7e045c3..744c155 100644 --- a/src/Client.php +++ b/src/Client.php @@ -53,6 +53,7 @@ class Client * @param TempNumberServer $backendServer */ public function __construct( + #[\SensitiveParameter] string $apiKey, ?HttpClientInterface $httpClient = null, TempNumberServer $backendServer = TempNumberServer::Production @@ -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' => [