Skip to content

Commit c50b304

Browse files
committed
use correct spelling when accessing the SMTP php.ini value
1 parent a8718e8 commit c50b304

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Tests/Transport/NativeTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testCreate(string $dsn, string $sendmailPath, string $smtp, stri
111111
{
112112
self::$fakeConfiguration = [
113113
'sendmail_path' => $sendmailPath,
114-
'smtp' => $smtp,
114+
'SMTP' => $smtp,
115115
'smtp_port' => $smtpPort,
116116
];
117117

Transport/NativeTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function create(Dsn $dsn): TransportInterface
3939

4040
// Only for windows hosts; at this point non-windows
4141
// host have already thrown an exception or returned a transport
42-
$host = ini_get('smtp');
42+
$host = ini_get('SMTP');
4343
$port = (int) ini_get('smtp_port');
4444

4545
if (!$host || !$port) {

0 commit comments

Comments
 (0)