This commit is contained in:
Oleg Voronkovich 2023-03-03 18:02:34 +03:00
parent b92c374b87
commit 1e560e0afd
2 changed files with 5 additions and 2 deletions

View File

@ -191,7 +191,7 @@ class DSNConfigurator
case 'Priority':
case 'SMTPDebug':
case 'WordWrap':
$mailer->$key = (integer) $value;
$mailer->$key = (int) $value;
break;
default:
$mailer->$key = $value;

View File

@ -187,7 +187,10 @@ final class DSNConfiguratorTest extends TestCase
{
$configurator = new DSNConfigurator();
$configurator->configure($this->Mail, 'sendmail://localhost?Sendmail=/usr/local/bin/sendmail&AllowEmpty=1&WordWrap=78');
$configurator->configure(
$this->Mail,
'sendmail://localhost?Sendmail=/usr/local/bin/sendmail&AllowEmpty=1&WordWrap=78'
);
self::assertEquals($this->Mail->Mailer, 'sendmail');
self::assertEquals($this->Mail->Sendmail, '/usr/local/bin/sendmail');