From ea31254c41e621808b1d003f4a886088ac4c6cc0 Mon Sep 17 00:00:00 2001 From: Fonata Date: Fri, 12 Nov 2021 13:57:38 +0100 Subject: [PATCH] Code style: explicit return value in getServerExt --- src/SMTP.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/SMTP.php b/src/SMTP.php index 0cea1e86..e4370350 100644 --- a/src/SMTP.php +++ b/src/SMTP.php @@ -1170,7 +1170,7 @@ class SMTP if (!$this->server_caps) { $this->setError('No HELO/EHLO was sent'); - return; + return null; } if (!array_key_exists($name, $this->server_caps)) { @@ -1182,7 +1182,7 @@ class SMTP } $this->setError('HELO handshake was used; No information about server extensions available'); - return; + return null; } return $this->server_caps[$name];