Skip to content

Conversation

@TBlindaruk
Copy link
Contributor

  • 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

@driesvints
Copy link
Member

Think we should thread a little careful here. This cascades a little higher up the chain to the queue method I see.

 - 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
@TBlindaruk TBlindaruk force-pushed the change-contract-to-instance branch from 4119603 to de16868 Compare September 24, 2019 19:17
@TBlindaruk
Copy link
Contributor Author

FIxed in all places, where this method is called.
Also I have fixed the same problem with mailer

@driesvints
Copy link
Member

I really think we shouldn't do this on a minor release. Seems to be breaking?

@TBlindaruk
Copy link
Contributor Author

TBlindaruk commented Sep 24, 2019

hm,
Ok
It was changed #26790 here, but in this case if interface is important, then we should expand an interface i think

@TBlindaruk TBlindaruk closed this Sep 24, 2019
@TBlindaruk TBlindaruk deleted the change-contract-to-instance branch September 24, 2019 19:31
TBlindaruk added a commit to TBlindaruk/laravel-framework that referenced this pull request Sep 24, 2019
 - expand Mailable interface since `PendingMail::fill()` used some not existed method from the Mailable interface now. And it will caused an fatal error.
 Base PR: laravel#30088
@TBlindaruk
Copy link
Contributor Author

#30089 changed to 7.0

taylorotwell pushed a commit that referenced this pull request Sep 25, 2019
- expand Mailable interface since `PendingMail::fill()` used some not existed method from the Mailable interface now. And it will caused an fatal error.
 Base PR: #30088
taylorotwell pushed a commit to illuminate/contracts that referenced this pull request Sep 25, 2019
- expand Mailable interface since `PendingMail::fill()` used some not existed method from the Mailable interface now. And it will caused an fatal error.
 Base PR: laravel/framework#30088
taylorotwell pushed a commit to illuminate/mail that referenced this pull request Sep 25, 2019
- expand Mailable interface since `PendingMail::fill()` used some not existed method from the Mailable interface now. And it will caused an fatal error.
 Base PR: laravel/framework#30088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants