Skip to content

Commit 3c1761d

Browse files
Merge branch '7.3' into 7.4
* 7.3: [ObjectMapper] do not require mapping a target's required promoted property when not on source (#2) [GitHub] Update .github/PULL_REQUEST_TEMPLATE.md to remove SF 7.2 as it's not supported anymore [WebProfilerBundle] Fix toolbar not rendering after replacing it Add friendly name in the `to` field [ObjectMapper] read source metadata before transform [HtmlSanitizer] Fix force_attributes not replacing existing attribute in initial data
2 parents de1dcd4 + dffa554 commit 3c1761d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Transport/ResendApiTransportTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ public function testSendForIdnDomains()
151151

152152
$body = json_decode($options['body'], true);
153153
// to
154-
$this->assertSame('[email protected]', $body['to'][0]);
154+
$this->assertSame('Kältetechnik Xyz <[email protected]>', $body['to'][0]);
155155
// sender
156156
$this->assertStringContainsString('[email protected]', $body['from']);
157157
$this->assertStringContainsString('Kältetechnik Xyz', $body['from']);

Transport/ResendApiTransport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ private function formatAddresses(array $addresses): array
8282
{
8383
$formattedAddresses = [];
8484
foreach ($addresses as $address) {
85-
$formattedAddresses[] = $address->getEncodedAddress();
85+
$formattedAddresses[] = $this->formatAddress($address);
8686
}
8787

8888
if (\count($formattedAddresses) > 50) {

0 commit comments

Comments
 (0)