Last modified: 2010-05-25 13:25:55 UTC
function send() in includes/UserMailer.php has a first parameter, $to, that can be a singleton or an array. If a singleton, it must be a MailAddress object. If you pass an array of MailAddress objects, however, you get the warning: Object of class MailAddress to string conversion in .../includes/UserMailer.php on line 115 The line is: wfDebug( __METHOD__.': sending mail to ' . implode( ',', $to ) . "\n" ); This is strange. send() seems to be expecting an array of strings, or a single MailAddress, but not an array of MailAddress objects. This is either a bug to be fixed, or extra documentation is needed about valid values for $to.
It's the wfDebug() that's wrong, it should accept arrays of objects not strings. Fixed the wfDebug() in r66871.