Skip to content

Commit 4119603

Browse files
committed
[6.x] Changed Contract to Class
- I have changed `\Illuminate\Contracts\Mail\Mailable` to `\Illuminate\Mail\Mailable`, since contract does not contains `cc` / `to` / `bcc` / `locale` methods, and in case if you call method only with contract, then we will get fatall error, since method is not present in the contract
1 parent 419253f commit 4119603

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Illuminate/Mail/PendingMail.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -170,14 +170,14 @@ public function later($delay, MailableContract $mailable)
170170
/**
171171
* Populate the mailable with the addresses.
172172
*
173-
* @param \Illuminate\Contracts\Mail\Mailable $mailable;
173+
* @param \Illuminate\Mail\Mailable $mailable
174174
* @return \Illuminate\Mail\Mailable
175175
*/
176-
protected function fill(MailableContract $mailable)
176+
protected function fill(Mailable $mailable)
177177
{
178178
return tap($mailable->to($this->to)
179179
->cc($this->cc)
180-
->bcc($this->bcc), function ($mailable) {
180+
->bcc($this->bcc), function (Mailable $mailable) {
181181
if ($this->locale) {
182182
$mailable->locale($this->locale);
183183
}

0 commit comments

Comments
 (0)