wp-includes/PHPMailer/DSNConfigurator.php:41Create new PHPMailer instance configured by DSN.
$dsnstring$exceptionsbooloptionalnullPHPMailer\PHPMailer\PHPMailer public static function mailer($dsn, $exceptions = null) { static $configurator = null; if (null === $configurator) { $configurator = new DSNConfigurator(); } return $configurator->configure(new PHPMailer($exceptions), $dsn); }Unchanged from 6.9.7 through 7.1.0.
Signature, return type and hooks compared across 3 parsed releases.
src/wp-includes/PHPMailer/DSNConfigurator.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.