Skip to content

php 8.2 support #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: true
matrix:
php: ['7.4', '8.1']
php: ['7.4', '8.1', '8.2']

name: PHP ${{ matrix.php }}

Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/Attachment.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Swift_Attachment extends Swift_Mime_Attachment
public function __construct($data = null, $filename = null, $contentType = null)
{
\call_user_func_array(
[$this, 'Swift_Mime_Attachment::__construct'],
'Swift_Mime_Attachment::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.attachment')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/EmbeddedFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Swift_EmbeddedFile extends Swift_Mime_EmbeddedFile
public function __construct($data = null, $filename = null, $contentType = null)
{
\call_user_func_array(
[$this, 'Swift_Mime_EmbeddedFile::__construct'],
'Swift_Mime_EmbeddedFile::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.embeddedfile')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/FailoverTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Swift_FailoverTransport extends Swift_Transport_FailoverTransport
public function __construct($transports = [])
{
\call_user_func_array(
[$this, 'Swift_Transport_FailoverTransport::__construct'],
'Swift_Transport_FailoverTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.failover')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/LoadBalancedTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Swift_LoadBalancedTransport extends Swift_Transport_LoadBalancedTransport
public function __construct($transports = [])
{
\call_user_func_array(
[$this, 'Swift_Transport_LoadBalancedTransport::__construct'],
'Swift_Transport_LoadBalancedTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.loadbalanced')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/Message.php
Original file line number Diff line number Diff line change
Expand Up @@ -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(
[$this, 'Swift_Mime_SimpleMessage::__construct'],
'Swift_Mime_SimpleMessage::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.message')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/MimePart.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Swift_MimePart extends Swift_Mime_MimePart
public function __construct($body = null, $contentType = null, $charset = null)
{
\call_user_func_array(
[$this, 'Swift_Mime_MimePart::__construct'],
'Swift_Mime_MimePart::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('mime.part')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/NullTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class Swift_NullTransport extends Swift_Transport_NullTransport
public function __construct()
{
\call_user_func_array(
[$this, 'Swift_Transport_NullTransport::__construct'],
'Swift_Transport_NullTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.null')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/SendmailTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Swift_SendmailTransport extends Swift_Transport_SendmailTransport
public function __construct($command = '/usr/sbin/sendmail -bs')
{
\call_user_func_array(
[$this, 'Swift_Transport_SendmailTransport::__construct'],
'Swift_Transport_SendmailTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.sendmail')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/SmtpTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class Swift_SmtpTransport extends Swift_Transport_EsmtpTransport
public function __construct($host = 'localhost', $port = 25, $encryption = null)
{
\call_user_func_array(
[$this, 'Swift_Transport_EsmtpTransport::__construct'],
'Swift_Transport_EsmtpTransport::__construct',
Swift_DependencyContainer::getInstance()
->createDependenciesFor('transport.smtp')
);
Expand Down
2 changes: 1 addition & 1 deletion lib/classes/Swift/SpoolTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function __construct(Swift_Spool $spool)
$arguments[] = $spool;

\call_user_func_array(
[$this, 'Swift_Transport_SpoolTransport::__construct'],
'Swift_Transport_SpoolTransport::__construct',
$arguments
);
}
Expand Down