From 5f1805c43607c43faf51b0b670eb9c1b2e95c7dd Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Sun, 3 Jan 2021 00:53:46 +0100 Subject: [PATCH] Mentioning "array" explicitly See https://github.com/symfony/symfony-docs/pull/13996#issuecomment-663622246 - I opened that other PR to get the word **array** on the page ;-) Also, I'm deleting two comments `// ...` from code blocks, since they're present in some, and absent in some. I think it's better to omit them, if the given example is (sort of) complete in itself. IMO, these 2 deleted comments did't add any value, and just made the page longer. --- mailer.rst | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/mailer.rst b/mailer.rst index 86683f365c1..483b2c234b8 100644 --- a/mailer.rst +++ b/mailer.rst @@ -281,19 +281,15 @@ Use ``addTo()``, ``addCc()``, or ``addBcc()`` methods to add more addresses:: ->addTo('bar@example.com') ->cc('cc@example.com') ->addCc('cc2@example.com') - - // ... ; Alternatively, you can pass multiple addresses to each method:: - $toAddresses = ['foo@example.com', new Address('bar@example.com')]; + $addressesArray = ['foo@example.com', new Address('bar@example.com')]; $email = (new Email()) - ->to(...$toAddresses) + ->to(...$addressesArray) ->cc('cc1@example.com', 'cc2@example.com') - - // ... ; Message Headers