Avoid deprecation messages when sending an email with PHP 8.2

Fixes #5225
This commit is contained in:
Frédéric Guillot 2023-04-03 20:17:55 -07:00 committed by Frédéric Guillot
parent e2ad014cde
commit 4c40fe1931
12 changed files with 12 additions and 12 deletions

View File

@ -47,7 +47,7 @@ define('MAIL_FROM', 'replace-me@kanboard.local');
// E-mail address used for the "Bcc" header to send a copy of all notifications
define('MAIL_BCC', '');
// Mail transport available: "smtp", "sendmail", "mail" (PHP mail function), "postmark", "mailgun", "sendgrid"
// Mail transport available: "smtp", "sendmail", "mail" (PHP mail function)
define('MAIL_TRANSPORT', 'mail');
// SMTP configuration to use when the "smtp" transport is chosen

View File

@ -27,7 +27,7 @@ class Swift_Attachment extends Swift_Mime_Attachment
public function __construct($data = null, $filename = null, $contentType = null)
{
call_user_func_array(
array($this, 'Swift_Mime_Attachment::__construct'),
'Swift_Mime_Attachment::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.attachment')
);

View File

@ -27,7 +27,7 @@ class Swift_EmbeddedFile extends Swift_Mime_EmbeddedFile
public function __construct($data = null, $filename = null, $contentType = null)
{
call_user_func_array(
array($this, 'Swift_Mime_EmbeddedFile::__construct'),
'Swift_Mime_EmbeddedFile::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.embeddedfile')
);

View File

@ -23,7 +23,7 @@ class Swift_FailoverTransport extends Swift_Transport_FailoverTransport
public function __construct($transports = array())
{
call_user_func_array(
array($this, 'Swift_Transport_FailoverTransport::__construct'),
'Swift_Transport_FailoverTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.failover')
);

View File

@ -23,7 +23,7 @@ class Swift_LoadBalancedTransport extends Swift_Transport_LoadBalancedTransport
public function __construct($transports = array())
{
call_user_func_array(
array($this, 'Swift_Transport_LoadBalancedTransport::__construct'),
'Swift_Transport_LoadBalancedTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.loadbalanced')
);

View File

@ -25,7 +25,7 @@ class Swift_MailTransport extends Swift_Transport_MailTransport
public function __construct($extraParams = '-f%s')
{
call_user_func_array(
array($this, 'Swift_Transport_MailTransport::__construct'),
'Swift_Transport_MailTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.mail')
);

View File

@ -43,7 +43,7 @@ class Swift_Message extends Swift_Mime_SimpleMessage
public function __construct($subject = null, $body = null, $contentType = null, $charset = null)
{
call_user_func_array(
array($this, 'Swift_Mime_SimpleMessage::__construct'),
'Swift_Mime_SimpleMessage::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.message')
);

View File

@ -27,7 +27,7 @@ class Swift_MimePart extends Swift_Mime_MimePart
public function __construct($body = null, $contentType = null, $charset = null)
{
call_user_func_array(
array($this, 'Swift_Mime_MimePart::__construct'),
'Swift_Mime_MimePart::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.part')
);

View File

@ -18,7 +18,7 @@ class Swift_NullTransport extends Swift_Transport_NullTransport
public function __construct()
{
call_user_func_array(
array($this, 'Swift_Transport_NullTransport::__construct'),
'Swift_Transport_NullTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.null')
);

View File

@ -23,7 +23,7 @@ class Swift_SendmailTransport extends Swift_Transport_SendmailTransport
public function __construct($command = '/usr/sbin/sendmail -bs')
{
call_user_func_array(
array($this, 'Swift_Transport_SendmailTransport::__construct'),
'Swift_Transport_SendmailTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.sendmail')
);

View File

@ -32,7 +32,7 @@ class Swift_SmtpTransport extends Swift_Transport_EsmtpTransport
public function __construct($host = 'localhost', $port = 25, $security = null)
{
call_user_func_array(
array($this, 'Swift_Transport_EsmtpTransport::__construct'),
'Swift_Transport_EsmtpTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.smtp')
);

View File

@ -28,7 +28,7 @@ class Swift_SpoolTransport extends Swift_Transport_SpoolTransport
$arguments[] = $spool;
call_user_func_array(
array($this, 'Swift_Transport_SpoolTransport::__construct'),
'Swift_Transport_SpoolTransport::__construct',
$arguments
);
}