@@ -290,9 +290,9 @@ protected function getInstance(): MailerInterface {
290290 */
291291 protected function getSmtpInstance (): EsmtpTransport {
292292 // either null or true - if nothing is passed, let the symfony mailer figure out the configuration by itself
293- $ mailSmtpsecure = ($ this ->config ->getSystemValue ('mail_smtpsecure ' , null ) === 'ssl ' ) ? true : null ;
293+ $ mailSmtpsecure = ($ this ->config ->getSystemValueString ('mail_smtpsecure ' , null ) === 'ssl ' ) ? true : null ;
294294 $ transport = new EsmtpTransport (
295- $ this ->config ->getSystemValue ('mail_smtphost ' , '127.0.0.1 ' ),
295+ $ this ->config ->getSystemValueString ('mail_smtphost ' , '127.0.0.1 ' ),
296296 $ this ->config ->getSystemValueInt ('mail_smtpport ' , 25 ),
297297 $ mailSmtpsecure ,
298298 null ,
@@ -301,11 +301,11 @@ protected function getSmtpInstance(): EsmtpTransport {
301301 /** @var SocketStream $stream */
302302 $ stream = $ transport ->getStream ();
303303 /** @psalm-suppress InternalMethod */
304- $ stream ->setTimeout ($ this ->config ->getSystemValue ('mail_smtptimeout ' , 10 ));
304+ $ stream ->setTimeout ($ this ->config ->getSystemValueInt ('mail_smtptimeout ' , 10 ));
305305
306306 if ($ this ->config ->getSystemValueBool ('mail_smtpauth ' , false )) {
307- $ transport ->setUsername ($ this ->config ->getSystemValue ('mail_smtpname ' , '' ));
308- $ transport ->setPassword ($ this ->config ->getSystemValue ('mail_smtppassword ' , '' ));
307+ $ transport ->setUsername ($ this ->config ->getSystemValueString ('mail_smtpname ' , '' ));
308+ $ transport ->setPassword ($ this ->config ->getSystemValueString ('mail_smtppassword ' , '' ));
309309 }
310310
311311 $ streamingOptions = $ this ->config ->getSystemValue ('mail_smtpstreamoptions ' , []);
0 commit comments