• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Fixed XF\Mail\Mail::setLanguage() doesn't return $this

Affected version
2.0.0 Beta 1

DragonByte Tech

Well-known member
Literally every other set* function in that file has return $this; except for that function.

                // Create appropriate mail object
                    ->setTemplate('dbtech_mail_new_unsubscription_mailinglist', [
                        'mailinglist' => $mailinglist,
                        'brandingVariables' => $brandingVariables,
                        'user' => $user,
                        'reason' => $unsubscribereason . ($cleanedInput['unsubscribereason_other'] ? (' - ' . $cleanedInput['unsubscribereason_other']) : ''),
                    ->setFrom($user->email, $user->username)
Call to a member function setTo() on null
I'm so confident of this getting fixed I'm going to edit the file on my end, and you can't stop me :p