File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -274,7 +274,7 @@ both strings or address objects::
274
274
:class: `Symfony\\ Component\\ Mailer\\ Event\\ MessageEvent ` event to set the
275
275
same ``From `` email to all messages.
276
276
277
- Multiple addresses can be set with ``addTo() ``, ``addCc() ``, or ``addBcc() ``::
277
+ Use ``addTo() ``, ``addCc() ``, or ``addBcc() `` methods to add more addresses ::
278
278
279
279
$email = (new Email())
280
280
->to('foo@example.com')
@@ -290,7 +290,7 @@ Alternatively, you can pass multiple addresses to each method::
290
290
$toAddresses = ['foo@example.com', new Address('bar@example.com')];
291
291
292
292
$email = (new Email())
293
- ->to(...$toAddresses) // use the splat operator if you have an array
293
+ ->to(...$toAddresses)
294
294
->cc('cc1@example.com', 'cc2@example.com')
295
295
296
296
// ...
You can’t perform that action at this time.
0 commit comments