From a304d790ca286fd4ff7ebae649e153d20ec5d6de Mon Sep 17 00:00:00 2001 From: Nicolas Grekas Date: Sat, 30 May 2020 22:06:45 +0200 Subject: [PATCH] Merge branch '3.4' into 4.4 * 3.4: Various cleanups --- Transport/Smtp/Stream/SocketStream.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Transport/Smtp/Stream/SocketStream.php b/Transport/Smtp/Stream/SocketStream.php index 5aa8629..433e0b1 100644 --- a/Transport/Smtp/Stream/SocketStream.php +++ b/Transport/Smtp/Stream/SocketStream.php @@ -135,7 +135,7 @@ public function initialize(): void $streamContext = stream_context_create($options); set_error_handler(function ($type, $msg) { - throw new TransportException(sprintf('Connection could not be established with host "%s": '.$msg, $this->url)); + throw new TransportException(sprintf('Connection could not be established with host "%s": ', $this->url).$msg); }); try { $this->stream = stream_socket_client($this->url, $errno, $errstr, $this->timeout, STREAM_CLIENT_CONNECT, $streamContext);