TypeError
HostBrook\LaravelDkim\Mailer::send(): Return value must be of type ?Illuminate\Mail\SentMessage, string returned
at vendor/hostbrook/laravel-dkim/src/Mailer.php:30
public function send($view, array $data = [], $callback = null): ?SentMessage
{
if ($view instanceof MailableContract) {
return $this->sendMailable($view);
}
wait, in the case of ShouldQueue - how the result of $mailable->mailer($this->name)->queue($this->queue) can be a string?
it doesn't make any sense, isn't it?
I found these lines in sendMailable:
and in my case (ShouldQueue) it returns string, as I see.
laravel 10.23.0
Maybe we can remove ?SendMessage to fix this?