|
@@ -18,9 +18,9 @@ |
|
|
block discarded – undo |
|
18
|
18
|
public function connect(string $address, array $options = []): TransportInterface |
|
19
|
19
|
{ |
|
20
|
20
|
if ($this->target === null) { |
|
21
|
|
- $timeout = (float)($options['timeout'] ??(float) ini_get('default_socket_timeout')); |
|
|
21
|
+ $timeout = (float) ($options['timeout'] ??(float) ini_get('default_socket_timeout')); |
|
22
|
22
|
$port = $options['port'] ?? 0; |
|
23
|
|
- $url = $this->schema . $address; |
|
|
23
|
+ $url = $this->schema.$address; |
|
24
|
24
|
$this->target = fsockopen($url, $port, $this->errorNumber, $this->errorMessage, $timeout); |
|
25
|
25
|
} |
|
26
|
26
|
|
Please login to merge, or discard this patch.