diff --git a/src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransport.php b/src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransport.php index 1ba4fcd7d81c4..65353d68bc7bd 100644 --- a/src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/AllMySms/AllMySmsTransport.php @@ -32,7 +32,7 @@ final class AllMySmsTransport extends AbstractTransport private string $apiKey; private ?string $from; - public function __construct(string $login, string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $login, #[\SensitiveParameter] string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->login = $login; $this->apiKey = $apiKey; diff --git a/src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransport.php b/src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransport.php index 2d6f61c871aa8..fae4fa53471e0 100644 --- a/src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Chatwork/ChatworkTransport.php @@ -31,7 +31,7 @@ class ChatworkTransport extends AbstractTransport private string $apiToken; private string $roomId; - public function __construct(string $apiToken, string $roomId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $apiToken, string $roomId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiToken = $apiToken; $this->roomId = $roomId; diff --git a/src/Symfony/Component/Notifier/Bridge/Clickatell/ClickatellTransport.php b/src/Symfony/Component/Notifier/Bridge/Clickatell/ClickatellTransport.php index 8f618f58675b2..b9861517546f4 100644 --- a/src/Symfony/Component/Notifier/Bridge/Clickatell/ClickatellTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Clickatell/ClickatellTransport.php @@ -31,7 +31,7 @@ final class ClickatellTransport extends AbstractTransport private string $authToken; private ?string $from; - public function __construct(string $authToken, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $authToken, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->authToken = $authToken; $this->from = $from; diff --git a/src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransport.php b/src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransport.php index 7f18ddc8e22a1..9a00388e2d837 100644 --- a/src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/ContactEveryone/ContactEveryoneTransport.php @@ -33,7 +33,7 @@ final class ContactEveryoneTransport extends AbstractTransport private ?string $diffusionName; private ?string $category; - public function __construct(string $token, ?string $diffusionName, ?string $category, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $token, ?string $diffusionName, ?string $category, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->token = $token; $this->diffusionName = $diffusionName; diff --git a/src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotTransport.php b/src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotTransport.php index 9bd483502b196..648d8ace989e7 100644 --- a/src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Engagespot/EngagespotTransport.php @@ -32,7 +32,7 @@ final class EngagespotTransport extends AbstractTransport private $apiKey; private $campaignName; - public function __construct(string $apiKey, string $campaignName, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $apiKey, string $campaignName, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiKey = $apiKey; $this->campaignName = $campaignName; diff --git a/src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransport.php b/src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransport.php index d4b4370fe2561..e97773fd219c1 100644 --- a/src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Expo/ExpoTransport.php @@ -32,7 +32,7 @@ final class ExpoTransport extends AbstractTransport /** @var string|null */ private $token; - public function __construct(string $token = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $token = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->token = $token; $this->client = $client; diff --git a/src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransport.php b/src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransport.php index 7712b59c46641..b5bdd6cc502b8 100644 --- a/src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/FortySixElks/FortySixElksTransport.php @@ -32,7 +32,7 @@ final class FortySixElksTransport extends AbstractTransport private string $apiPassword; private string $from; - public function __construct(string $apiUsername, string $apiPassword, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $apiUsername, #[\SensitiveParameter] string $apiPassword, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiUsername = $apiUsername; $this->apiPassword = $apiPassword; diff --git a/src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransport.php b/src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransport.php index 221791a39e284..543decc040dab 100644 --- a/src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/GatewayApi/GatewayApiTransport.php @@ -31,7 +31,7 @@ final class GatewayApiTransport extends AbstractTransport private string $authToken; private string $from; - public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->authToken = $authToken; $this->from = $from; diff --git a/src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransport.php b/src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransport.php index 7ed3a6d897ce2..4163a0b4ea410 100644 --- a/src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Infobip/InfobipTransport.php @@ -30,7 +30,7 @@ final class InfobipTransport extends AbstractTransport private string $authToken; private string $from; - public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->authToken = $authToken; $this->from = $from; diff --git a/src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php b/src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php index 11f344bae725e..8ad85e8f6511b 100644 --- a/src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/LinkedIn/LinkedInTransport.php @@ -37,7 +37,7 @@ final class LinkedInTransport extends AbstractTransport private string $authToken; private string $accountId; - public function __construct(string $authToken, string $accountId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $authToken, string $accountId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->authToken = $authToken; $this->accountId = $accountId; diff --git a/src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransport.php b/src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransport.php index 776b53bc2f300..d02760629cebe 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Mailjet/MailjetTransport.php @@ -31,7 +31,7 @@ final class MailjetTransport extends AbstractTransport private string $authToken; private string $from; - public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->authToken = $authToken; $this->from = $from; diff --git a/src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php b/src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php index 2d611b0560334..364c0dffb20ae 100644 --- a/src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/MessageMedia/MessageMediaTransport.php @@ -33,7 +33,7 @@ final class MessageMediaTransport extends AbstractTransport private string $apiSecret; private ?string $from; - public function __construct(string $apiKey, string $apiSecret, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $apiKey, #[\SensitiveParameter] string $apiSecret, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiKey = $apiKey; $this->apiSecret = $apiSecret; diff --git a/src/Symfony/Component/Notifier/Bridge/Mobyt/MobytTransport.php b/src/Symfony/Component/Notifier/Bridge/Mobyt/MobytTransport.php index 70f33bb43b791..06f2fb3b15612 100644 --- a/src/Symfony/Component/Notifier/Bridge/Mobyt/MobytTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Mobyt/MobytTransport.php @@ -34,7 +34,7 @@ final class MobytTransport extends AbstractTransport private string $from; private string $typeQuality; - public function __construct(string $accountSid, string $authToken, string $from, string $typeQuality = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $accountSid, #[\SensitiveParameter] string $authToken, string $from, string $typeQuality = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->accountSid = $accountSid; $this->authToken = $authToken; diff --git a/src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransport.php b/src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransport.php index 217cdae9d2c5b..601fdcd85fb0f 100644 --- a/src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Octopush/OctopushTransport.php @@ -33,7 +33,7 @@ final class OctopushTransport extends AbstractTransport private string $from; private string $type; - public function __construct(string $userLogin, string $apiKey, string $from, string $type, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $userLogin, #[\SensitiveParameter] string $apiKey, string $from, string $type, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->userLogin = $userLogin; $this->apiKey = $apiKey; diff --git a/src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransport.php b/src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransport.php index c9502dce1f083..aae953843bed4 100644 --- a/src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/OneSignal/OneSignalTransport.php @@ -33,7 +33,7 @@ final class OneSignalTransport extends AbstractTransport private $apiKey; private $defaultRecipientId; - public function __construct(string $appId, string $apiKey, string $defaultRecipientId = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $appId, #[\SensitiveParameter] string $apiKey, string $defaultRecipientId = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->appId = $appId; $this->apiKey = $apiKey; diff --git a/src/Symfony/Component/Notifier/Bridge/OrangeSms/OrangeSmsTransport.php b/src/Symfony/Component/Notifier/Bridge/OrangeSms/OrangeSmsTransport.php index 93e5b593887b5..6af71e0641c0a 100644 --- a/src/Symfony/Component/Notifier/Bridge/OrangeSms/OrangeSmsTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/OrangeSms/OrangeSmsTransport.php @@ -29,7 +29,7 @@ final class OrangeSmsTransport extends AbstractTransport private string $from; private ?string $senderName; - public function __construct(string $clientID, string $clientSecret, string $from, string $senderName = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $clientID, #[\SensitiveParameter] string $clientSecret, string $from, string $senderName = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->clientID = $clientID; $this->clientSecret = $clientSecret; diff --git a/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php b/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php index 5826aaadd8b5f..7bca67f9fe43c 100644 --- a/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/OvhCloud/OvhCloudTransport.php @@ -35,7 +35,7 @@ final class OvhCloudTransport extends AbstractTransport private ?string $sender = null; private bool $noStopClause = false; - public function __construct(string $applicationKey, string $applicationSecret, string $consumerKey, string $serviceName, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $applicationKey, #[\SensitiveParameter] string $applicationSecret, string $consumerKey, string $serviceName, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->applicationKey = $applicationKey; $this->applicationSecret = $applicationSecret; diff --git a/src/Symfony/Component/Notifier/Bridge/Sendinblue/SendinblueTransport.php b/src/Symfony/Component/Notifier/Bridge/Sendinblue/SendinblueTransport.php index 31b298d786870..dae546ba55eee 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sendinblue/SendinblueTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Sendinblue/SendinblueTransport.php @@ -31,7 +31,7 @@ final class SendinblueTransport extends AbstractTransport private string $apiKey; private string $sender; - public function __construct(string $apiKey, string $sender, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $apiKey, string $sender, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiKey = $apiKey; $this->sender = $sender; diff --git a/src/Symfony/Component/Notifier/Bridge/Sinch/SinchTransport.php b/src/Symfony/Component/Notifier/Bridge/Sinch/SinchTransport.php index 73691378c3ffe..0d14770910d47 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sinch/SinchTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Sinch/SinchTransport.php @@ -32,7 +32,7 @@ final class SinchTransport extends AbstractTransport private string $authToken; private string $from; - public function __construct(string $accountSid, string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $accountSid, #[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->accountSid = $accountSid; $this->authToken = $authToken; diff --git a/src/Symfony/Component/Notifier/Bridge/Sms77/Sms77Transport.php b/src/Symfony/Component/Notifier/Bridge/Sms77/Sms77Transport.php index ece6fbef6d43a..2522a211994e2 100644 --- a/src/Symfony/Component/Notifier/Bridge/Sms77/Sms77Transport.php +++ b/src/Symfony/Component/Notifier/Bridge/Sms77/Sms77Transport.php @@ -31,7 +31,7 @@ final class Sms77Transport extends AbstractTransport private $apiKey; private $from; - public function __construct(string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $apiKey, string $from = null, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiKey = $apiKey; $this->from = $from; diff --git a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/SmsBiurasTransport.php b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/SmsBiurasTransport.php index 3192ab05a96c1..10814f8fd18ca 100644 --- a/src/Symfony/Component/Notifier/Bridge/SmsBiuras/SmsBiurasTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/SmsBiuras/SmsBiurasTransport.php @@ -47,7 +47,7 @@ final class SmsBiurasTransport extends AbstractTransport 999 => 'Unknown Error', ]; - public function __construct(string $uid, string $apiKey, string $from, bool $testMode, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $uid, #[\SensitiveParameter] string $apiKey, string $from, bool $testMode, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->uid = $uid; $this->apiKey = $apiKey; diff --git a/src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php b/src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php index 545121b89c28a..b62528b007c39 100644 --- a/src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Smsapi/SmsapiTransport.php @@ -34,7 +34,7 @@ final class SmsapiTransport extends AbstractTransport private bool $fast = false; private bool $test = false; - public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->authToken = $authToken; $this->from = $from; diff --git a/src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php b/src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php index ef199e5dcf8a3..967ff94706391 100644 --- a/src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Telnyx/TelnyxTransport.php @@ -33,7 +33,7 @@ final class TelnyxTransport extends AbstractTransport private string $from; private ?string $messagingProfileId; - public function __construct(string $apiKey, string $from, ?string $messagingProfileId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $apiKey, string $from, ?string $messagingProfileId, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiKey = $apiKey; $this->from = $from; diff --git a/src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php b/src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php index 8eaad3c93677d..1d885abd2d07d 100644 --- a/src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/TurboSms/TurboSmsTransport.php @@ -37,7 +37,7 @@ final class TurboSmsTransport extends AbstractTransport private string $authToken; private string $from; - public function __construct(string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->assertValidFrom($from); diff --git a/src/Symfony/Component/Notifier/Bridge/Twilio/TwilioTransport.php b/src/Symfony/Component/Notifier/Bridge/Twilio/TwilioTransport.php index be89e34a1e944..e467233afeac2 100644 --- a/src/Symfony/Component/Notifier/Bridge/Twilio/TwilioTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Twilio/TwilioTransport.php @@ -33,7 +33,7 @@ final class TwilioTransport extends AbstractTransport private string $authToken; private string $from; - public function __construct(string $accountSid, string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $accountSid, #[\SensitiveParameter] string $authToken, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->accountSid = $accountSid; $this->authToken = $authToken; diff --git a/src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransport.php b/src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransport.php index 59242898500d4..aaefa85d5dffb 100644 --- a/src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Vonage/VonageTransport.php @@ -33,7 +33,7 @@ final class VonageTransport extends AbstractTransport private $apiSecret; private $from; - public function __construct(string $apiKey, string $apiSecret, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $apiKey, #[\SensitiveParameter] string $apiSecret, string $from, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiKey = $apiKey; $this->apiSecret = $apiSecret; diff --git a/src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransport.php b/src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransport.php index 4159c2efe9eba..dd9d0767b2881 100644 --- a/src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Yunpian/YunpianTransport.php @@ -31,7 +31,7 @@ class YunpianTransport extends AbstractTransport private string $apiKey; - public function __construct(string $apiKey, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(#[\SensitiveParameter] string $apiKey, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { $this->apiKey = $apiKey; diff --git a/src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskTransport.php b/src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskTransport.php index c04746787c988..eedb81ea825bc 100644 --- a/src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/Zendesk/ZendeskTransport.php @@ -30,7 +30,7 @@ final class ZendeskTransport extends AbstractTransport private string $email; private string $token; - public function __construct(string $email, string $token, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + public function __construct(string $email, #[\SensitiveParameter] string $token, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) { parent::__construct($client, $dispatcher);