From 20d3394e2baa66f04f248d6eecb5e7292a76e0c7 Mon Sep 17 00:00:00 2001 From: ralf Date: Tue, 29 Mar 2022 09:12:02 +0300 Subject: [PATCH] fix IDE warning/error: constructor returning something --- api/src/Mailer.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/src/Mailer.php b/api/src/Mailer.php index 75fe433c37..f6163ef418 100644 --- a/api/src/Mailer.php +++ b/api/src/Mailer.php @@ -75,12 +75,12 @@ class Mailer extends Horde_Mime_Mail Preferences::setlocale(LC_MESSAGES); parent::__construct(); - if ($account ==='initbasic') + if ($account === 'initbasic') { $this->_headers = new Horde_Mime_Headers(); $this->clearAllRecipients(); $this->clearReplyTos(); - return $this; + return; } if ($account !== false) { @@ -1194,4 +1194,4 @@ class Mailer extends Horde_Mime_Mail } return true; } -} +} \ No newline at end of file