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::
274274 :class: `Symfony\\ Component\\ Mailer\\ Event\\ MessageEvent ` event to set the
275275 same ``From `` email to all messages.
276276
277- Multiple addresses can be set with ``addTo() ``, ``addCc() ``, or ``addBcc() ``::
277+ Use ``addTo() ``, ``addCc() ``, or ``addBcc() `` methods to add more addresses ::
278278
279279 $email = (new Email())
280280 ->to('foo@example.com')
@@ -290,7 +290,7 @@ Alternatively, you can pass multiple addresses to each method::
290290 $toAddresses = ['foo@example.com', new Address('bar@example.com')];
291291
292292 $email = (new Email())
293- ->to(...$toAddresses) // use the splat operator if you have an array
293+ ->to(...$toAddresses)
294294 ->cc('cc1@example.com', 'cc2@example.com')
295295
296296 // ...
You can’t perform that action at this time.
0 commit comments