diff --git a/framework/mail/BaseMailer.php b/framework/mail/BaseMailer.php index 26f1589067..913a97b7c0 100644 --- a/framework/mail/BaseMailer.php +++ b/framework/mail/BaseMailer.php @@ -151,7 +151,7 @@ abstract class BaseMailer extends Component implements MailerInterface, ViewCont /** * Creates a new message instance and optionally composes its body content via view rendering. * - * @param string|array $view the view to be used for rendering the message body. This can be: + * @param string|array|null $view the view to be used for rendering the message body. This can be: * * - a string, which represents the view name or path alias for rendering the HTML body of the email. * In this case, the text body will be generated by applying `strip_tags()` to the HTML body. diff --git a/framework/mail/MailerInterface.php b/framework/mail/MailerInterface.php index ef7e5956b6..d730f8739c 100644 --- a/framework/mail/MailerInterface.php +++ b/framework/mail/MailerInterface.php @@ -31,7 +31,7 @@ interface MailerInterface /** * Creates a new message instance and optionally composes its body content via view rendering. * - * @param string|array $view the view to be used for rendering the message body. This can be: + * @param string|array|null $view the view to be used for rendering the message body. This can be: * * - a string, which represents the view name or path alias for rendering the HTML body of the email. * In this case, the text body will be generated by applying `strip_tags()` to the HTML body.