Here too. Fatal error and mails won’t send
The fatal error is related to the parameter type added in this commit. You should remove it to fix the issue.
- public function set_plaintext_body( PHPMailer $phpmailer ) {
+ public function set_plaintext_body( $phpmailer ) {
I use Icegram Express to send emails. I don’t know why the $phpmailer object is not typed as PHPMailer.
Heh, not sure why that parameter type is fatal’ing. Perhaps it’s the class_alias when using a WordPress version that’s shipping the namespaced version of PHPMailer?
Anyway, to simplify, I removed the type-hint in its entirety from version 1.2.0.