File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ succeeds or fails.
41
41
``` php
42
42
$connector = new React\SocketClient\Connector($loop, $dns);
43
43
44
- $connector->create('www.google.com', 80)->then(function (React\Stream\DuplexStreamInterface $stream) {
44
+ $connector->create('www.google.com', 80)->then(function (React\Stream\Stream $stream) {
45
45
$stream->write('...');
46
46
$stream->close();
47
47
});
@@ -57,7 +57,7 @@ a `Stream` instance that can be used just like any non-encrypted stream.
57
57
``` php
58
58
$secureConnector = new React\SocketClient\SecureConnector($connector, $loop);
59
59
60
- $secureConnector->create('www.google.com', 443)->then(function (React\Stream\DuplexStreamInterface $stream) {
60
+ $secureConnector->create('www.google.com', 443)->then(function (React\Stream\Stream $stream) {
61
61
$stream->write("GET / HTTP/1.0\r\nHost: www.google.com\r\n\r\n");
62
62
...
63
63
});
You can’t perform that action at this time.
0 commit comments