|
@@ -51,7 +51,7 @@ |
|
|
block discarded – undo |
|
51
|
51
|
// ]; |
|
52
|
52
|
|
|
53
|
53
|
$context = stream_context_create($this->contextOptions); |
|
54
|
|
- $link = $protocolWrapper->getHostname() . (!empty($protocolWrapper->getPort()) ? ':' . $protocolWrapper->getPort() : '' ); |
|
|
54
|
+ $link = $protocolWrapper->getHostname() . (!empty($protocolWrapper->getPort()) ? ':' . $protocolWrapper->getPort() : ''); |
|
55
|
55
|
$timeout = is_null($protocolWrapper->getTimeout()) ? 10.0 : floatval($protocolWrapper->getTimeout()); // do NOT ask - php7 + phpstan |
|
56
|
56
|
$filePointer = stream_socket_client($link, $errno, $errStr, $timeout, STREAM_CLIENT_CONNECT, $context); |
|
57
|
57
|
|
Please login to merge, or discard this patch.