"Object of class MailAddress to string conversion in includes/UserMailer.php on line 112"
(It seems a bit silly of PHP to give this warning when the class has a __toString method,
but adding an explicit toString() call is easy enough)
if ( is_array( $to ) ) {
wfDebug( __METHOD__.': sending mail to ' . implode( ',', $to ) . "\n" );
} else {
- wfDebug( __METHOD__.': sending mail to ' . implode( ',', array( $to ) ) . "\n" );
+ wfDebug( __METHOD__.': sending mail to ' . implode( ',', array( $to->toString() ) ) . "\n" );
}
if (is_array( $wgSMTP )) {