Merge pull request #17183 from OPEN-DSI/fix_00005

FIX : Fix warning
This commit is contained in:
Laurent Destailleur 2021-04-08 13:14:53 +02:00 committed by GitHub
commit 93269bab9e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -392,7 +392,6 @@ class SMTPs
} else {
if (function_exists('stream_socket_client') && !empty($this->_options)) {
$socket_context = stream_context_create($this->_options); // An array of options for stream_context_create()
set_error_handler([$this, 'errorHandler']);
$this->socket = @stream_socket_client(
preg_replace('@tls://@i', '', $this->getHost()).// Host to 'hit', IP or domain
':'.$this->getPort(), // which Port number to use