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('[email protected]')
282282
283283
->addCc('[email protected]')
284-
285-
// ...
286284
;
287285

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

290-
$toAddresses = ['[email protected]', new Address('[email protected]')];
288+
$addressesArray = ['[email protected]', new Address('[email protected]')];
291289

292290
$email = (new Email())
293-
->to(...$toAddresses)
291+
->to(...$addressesArray)
294292
295-
296-
// ...
297293
;
298294

299295
Message Headers

0 commit comments

Comments
 (0)