Tweaks to Core Mail inline docs

Created on 28 November 2019, over 5 years ago
Updated 10 September 2024, 6 months ago

I was debugging some issues in mailsystem and mimemail, and these two fixes came to light in Core mail code.

1. Wrapping line to clarify intent of code:
from:

    $allowed_tags = isset($allowed_tags) ? array_intersect(static::$supportedTags, $allowed_tags) : static::$supportedTags;

to:

$allowed_tags = isset($allowed_tags)
      ? array_intersect(static::$supportedTags, $allowed_tags)
      : static::$supportedTags;

2. Include correct @throws tags for MailManager functions getInstance() and doMail()

🐛 Bug report
Status

Postponed: needs info

Version

11.0 🔥

Component
Mail 

Last updated 4 days ago

No maintainer
Created by

🇬🇧United Kingdom rivimey

Live updates comments and jobs are added and updated live.
  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024