From a8141aeec4f1cb40b58420845356e19e5983dc44 Mon Sep 17 00:00:00 2001 From: Andrei Marchenko Date: Thu, 12 Sep 2019 10:50:07 +0300 Subject: [PATCH] Argument 2 passed to Amp\\Artax\\ConnectionInfo::__construct() must be of the type string, null given --- lib/DefaultClient.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/DefaultClient.php b/lib/DefaultClient.php index 2de73d7..d9b2557 100644 --- a/lib/DefaultClient.php +++ b/lib/DefaultClient.php @@ -1094,7 +1094,7 @@ private function collectConnectionInfo(ClientSocket $socket): ConnectionInfo { return new ConnectionInfo( $socket->getLocalAddress(), - $socket->getRemoteAddress(), + $socket->getRemoteAddress() ?? '', $crypto ? TlsInfo::fromMetaData($crypto, \stream_context_get_options($socket->getResource())["ssl"]) : null ); }