Skip to content

Commit ada848c

Browse files
committed
Add Support for Magento 2.4.8 and PHP 8.4
1 parent 115e9c9 commit ada848c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

Mail/Smtp.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99

1010
use Exception;
1111
use Symfony\Component\Mailer\Mailer;
12-
use Symfony\Component\Mailer\Transport\TransportInterface as SymfonyTransportInterface;
1312
use Symfony\Component\Mailer\Transport\Smtp\EsmtpTransport;
1413
use Symfony\Component\Mailer\Transport\Smtp\Auth\LoginAuthenticator;
1514
use Symfony\Component\Mailer\Transport\Smtp\Auth\PlainAuthenticator;
@@ -126,7 +125,7 @@ protected function setSender($message)
126125
'Sender',
127126
[new Address($setFromEmail, $name)]
128127
);
129-
}
128+
}
130129
}
131130
}
132131

@@ -165,7 +164,7 @@ protected function setReplyToPath($message)
165164
'reply-to',
166165
[new Address($returnPathEmail, $name)]
167166
);
168-
}
167+
}
169168
}
170169
}
171170

@@ -185,10 +184,11 @@ protected function getMessageFromAddressObject($message)
185184
}
186185

187186
/**
188-
* @param Data $dataHelper
189-
* @return SymfonyTransportInterface
187+
* Get the transport instance for sending emails.
188+
* @return EsmtpTransport
189+
* @throws \InvalidArgumentException
190190
*/
191-
public function getTransport(): SymfonyTransportInterface
191+
public function getTransport()
192192
{
193193
$dataHelper = $this->dataHelper;
194194

@@ -203,7 +203,6 @@ public function getTransport(): SymfonyTransportInterface
203203
$tls = true;
204204
}
205205

206-
/** @var EsmtpTransport $transport */
207206
$transport = new EsmtpTransport($host, $port, $tls);
208207

209208
if ($username) {

0 commit comments

Comments
 (0)