Skip to content

[7.x] Fix incompatible contract for Mail Facade#31809

Merged
taylorotwell merged 1 commit into
laravel:7.xfrom
Hasnayeen:7.x
Mar 6, 2020
Merged

[7.x] Fix incompatible contract for Mail Facade#31809
taylorotwell merged 1 commit into
laravel:7.xfrom
Hasnayeen:7.x

Conversation

@Hasnayeen

Copy link
Copy Markdown
Contributor

Illuminate\Notifications\Channels\MailChannel has been updated in v7.x to use Illuminate\Contracts\Mail\Factory contract instead of Illuminate\Contracts\Mail\Mailer but Illuminate\Support\Testing\Fakes\MailFake doesn't implement Illuminate\Contracts\Mail\Factory which results in following error
TypeError: Argument 1 passed to Illuminate\Notifications\Channels\MailChannel::__construct() must implement interface Illuminate\Contracts\Mail\Factory, instance of Illuminate\Support\Testing\Fakes\MailFake given.

This pr fix the above issue.

@driesvints

Copy link
Copy Markdown
Member

This seems the same one like #31752.

I suspect you're using notifications?

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.

3 participants