]> git.mxchange.org Git - core.git/commitdiff
Continued:
authorRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 21:21:00 +0000 (22:21 +0100)
committerRoland Häder <roland@mxchange.org>
Wed, 2 Dec 2020 21:21:00 +0000 (22:21 +0100)
- fixed socketType in exception, is now a getter

Signed-off-by: Roland Häder <roland@mxchange.org>
framework/main/exceptions/socket/class_SocketConnectionException.php

index 39ef8b95439b97a3b0ecfa7836366f37e378481e..efe940861353a0b068374e563669361354c10931 100644 (file)
@@ -36,11 +36,11 @@ class SocketConnectionException extends AbstractSocketException {
         */
        public function __construct (array $messageData, int $code) {
                // Construct the message
-               $message = sprintf('[%s:] Could not make a connection, type=%s, errno=%s, errstr=%s',
+               $message = sprintf('[%s:] Could not make a connection: socketType=%s,errno=%s,errstr=%s',
                        $messageData[0]->__toString(),
-                       gettype($messageData[1]),
-                       $messageData[2],
-                       $messageData[3]
+                       $messageData[0]->getSocketType(),
+                       $messageData[1],
+                       $messageData[2]
                );
 
                // Call parent exception constructor