0
0
mirror of https://github.com/PHPMailer/PHPMailer.git synced 2024-09-20 10:02:14 +02:00

Code style: explicit return value in getServerExt

This commit is contained in:
Fonata 2021-11-12 13:57:38 +01:00 committed by GitHub
parent 72c1e32d5e
commit ea31254c41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1170,7 +1170,7 @@ class SMTP
if (!$this->server_caps) { if (!$this->server_caps) {
$this->setError('No HELO/EHLO was sent'); $this->setError('No HELO/EHLO was sent');
return; return null;
} }
if (!array_key_exists($name, $this->server_caps)) { 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'); $this->setError('HELO handshake was used; No information about server extensions available');
return; return null;
} }
return $this->server_caps[$name]; return $this->server_caps[$name];