Skip to content

Commit 9bfd121

Browse files
committed
build: fixed class name
1 parent ce02c70 commit 9bfd121

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

phpmyfaq/src/phpMyFAQ/Mail.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
use phpMyFAQ\Core\Exception;
2222
use phpMyFAQ\Mail\Builtin;
23-
use phpMyFAQ\Mail\SMTP;
23+
use phpMyFAQ\Mail\Smtp;
2424
use Symfony\Component\HttpFoundation\Request;
2525
use Symfony\Component\Mailer\Exception\TransportExceptionInterface;
2626

@@ -700,7 +700,7 @@ public function fixEOL(string $text): string
700700
* @static
701701
* @param string $mua Type of the MUA.
702702
*/
703-
public static function getMUA(string $mua): Builtin|SMTP
703+
public static function getMUA(string $mua): Builtin|Smtp
704704
{
705705
$className = ucfirst(
706706
str_replace(

phpmyfaq/src/phpMyFAQ/Mail/SMTP.php renamed to phpmyfaq/src/phpMyFAQ/Mail/Smtp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
/**
2727
* Class SMTP
2828
*/
29-
class SMTP implements MailUserAgentInterface
29+
class Smtp implements MailUserAgentInterface
3030
{
3131
private string $user;
3232

tests/phpMyFAQ/MailTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use phpMyFAQ\Core\Exception;
66
use phpMyFAQ\Database\Sqlite3;
77
use phpMyFAQ\Mail\Builtin;
8-
use phpMyFAQ\Mail\SMTP;
8+
use phpMyFAQ\Mail\Smtp;
99
use PHPUnit\Framework\TestCase;
1010

1111
class MailTest extends TestCase
@@ -191,7 +191,7 @@ public function testGetMUAWithBuiltin(): void
191191
public function testGetMUAWithSMTP(): void
192192
{
193193
$result = Mail::getMUA('smtp');
194-
$this->assertInstanceOf(SMTP::class, $result);
194+
$this->assertInstanceOf(Smtp::class, $result);
195195
}
196196

197197
/**

0 commit comments

Comments
 (0)