Skip to content

Commit 98f0ce9

Browse files
Phillip85taylorotwell
authored andcommitted
Update Event.php => emailOutputTo (#19802)
* Bugfixing emailOutputTo func_get_args can not be used, the second parameter is not a email. * Update Event.php
1 parent 4ba77d0 commit 98f0ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Console/Scheduling/Event.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ public function emailOutputTo($addresses, $onlyIfOutputExists = false)
363363
{
364364
$this->ensureOutputIsBeingCapturedForEmail();
365365

366-
$addresses = is_array($addresses) ? $addresses : func_get_args();
366+
$addresses = is_array($addresses) ? $addresses : [$addresses];
367367

368368
return $this->then(function (Mailer $mailer) use ($addresses, $onlyIfOutputExists) {
369369
$this->emailOutput($mailer, $addresses, $onlyIfOutputExists);

0 commit comments

Comments
 (0)