@@ -41,7 +41,7 @@ public function __construct(#[\SensitiveParameter] string $authToken, string $fr
4141
4242 public function __toString (): string
4343 {
44- return sprintf ('gatewayapi://%s?from=%s ' , $ this ->getEndpoint (), $ this ->from );
44+ return \ sprintf ('gatewayapi://%s?from=%s ' , $ this ->getEndpoint (), $ this ->from );
4545 }
4646
4747 public function supports (MessageInterface $ message ): bool
@@ -60,7 +60,7 @@ protected function doSend(MessageInterface $message): SentMessage
6060 $ options ['recipients ' ] = [['msisdn ' => $ message ->getPhone ()]];
6161 $ options ['message ' ] = $ message ->getSubject ();
6262
63- $ endpoint = sprintf ('https://%s/rest/mtsms ' , $ this ->getEndpoint ());
63+ $ endpoint = \ sprintf ('https://%s/rest/mtsms ' , $ this ->getEndpoint ());
6464
6565 $ response = $ this ->client ->request ('POST ' , $ endpoint , [
6666 'auth_basic ' => [$ this ->authToken , '' ],
@@ -74,7 +74,7 @@ protected function doSend(MessageInterface $message): SentMessage
7474 }
7575
7676 if (200 !== $ statusCode ) {
77- throw new TransportException (sprintf ('Unable to send the SMS: error %d. ' , $ statusCode ), $ response );
77+ throw new TransportException (\ sprintf ('Unable to send the SMS: error %d. ' , $ statusCode ), $ response );
7878 }
7979
8080 $ content = $ response ->toArray (false );
0 commit comments