From: Umherirrender Date: Thu, 3 Jan 2019 17:01:54 +0000 (+0100) Subject: Fix type for UserMailer::send $body param X-Git-Tag: 1.34.0-rc.0~3150^2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/ajouter.php?a=commitdiff_plain;h=b1e060d267bef3555be4bee812066c7191031de3;p=lhc%2Fweb%2Fwiklou.git Fix type for UserMailer::send $body param It is documented to be an array, so add it to the type Change-Id: I92c56fd92f2c09f75d9370aab711b7446c31beb5 --- diff --git a/includes/mail/UserMailer.php b/includes/mail/UserMailer.php index f348c5bb4e..63a3eb03eb 100644 --- a/includes/mail/UserMailer.php +++ b/includes/mail/UserMailer.php @@ -102,7 +102,7 @@ class UserMailer { * @param MailAddress|MailAddress[] $to Recipient's email (or an array of them) * @param MailAddress $from Sender's email * @param string $subject Email's subject. - * @param string $body Email's text or Array of two strings to be the text and html bodies + * @param string|string[] $body Email's text or Array of two strings to be the text and html bodies * @param array $options Keys: * 'replyTo' MailAddress * 'contentType' string default 'text/plain; charset=UTF-8' @@ -225,7 +225,7 @@ class UserMailer { * @param MailAddress[] $to Array of recipients' email addresses * @param MailAddress $from Sender's email * @param string $subject Email's subject. - * @param string $body Email's text or Array of two strings to be the text and html bodies + * @param string|string[] $body Email's text or Array of two strings to be the text and html bodies * @param array $options Keys: * 'replyTo' MailAddress * 'contentType' string default 'text/plain; charset=UTF-8'