Skip to content

Commit 06d1b76

Browse files
minor symfony#58442 [Mailer] Remove useless sprintf() call (alexandre-daubois)
This PR was merged into the 7.2 branch. Discussion ---------- [Mailer] Remove useless `sprintf()` call | Q | A | ------------- | --- | Branch? | 7.2 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | - | License | MIT Commits ------- 61781dd [Mailer] Remove useless `sprintf()` call
2 parents 22213fc + 61781dd commit 06d1b76

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/Symfony/Component/Mailer/Bridge/Postal/Transport/PostalApiTransport.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,7 @@ public function __toString(): string
4444

4545
protected function doSendApi(SentMessage $sentMessage, Email $email, Envelope $envelope): ResponseInterface
4646
{
47-
$path = \sprintf('/api/v1/send/message');
48-
49-
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().$path, [
47+
$response = $this->client->request('POST', 'https://'.$this->getEndpoint().'/api/v1/send/message', [
5048
'json' => $this->getPayload($email, $envelope),
5149
'headers' => [
5250
'X-Server-API-Key' => $this->apiToken,

0 commit comments

Comments
 (0)