Skip to content

Commit 5f1805c

Browse files
Mentioning "array" explicitly
See symfony#13996 (comment) - 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.
1 parent 922a469 commit 5f1805c

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

mailer.rst

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -281,19 +281,15 @@ Use ``addTo()``, ``addCc()``, or ``addBcc()`` methods to add more addresses::
281281
->addTo('bar@example.com')
282282
->cc('cc@example.com')
283283
->addCc('cc2@example.com')
284-
285-
// ...
286284
;
287285

288286
Alternatively, you can pass multiple addresses to each method::
289287

290-
$toAddresses = ['foo@example.com', new Address('bar@example.com')];
288+
$addressesArray = ['foo@example.com', new Address('bar@example.com')];
291289

292290
$email = (new Email())
293-
->to(...$toAddresses)
291+
->to(...$addressesArray)
294292
->cc('cc1@example.com', 'cc2@example.com')
295-
296-
// ...
297293
;
298294

299295
Message Headers

0 commit comments

Comments
 (0)