Skip to content

Commit 53f92b9

Browse files
committed
Add type hints
1 parent 012859d commit 53f92b9

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

src/Client.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ function ($error) use ($stream, $timerTimeout, $loop) {
229229
return $deferred->promise();
230230
}
231231

232-
protected function handleSocks4($stream, $host, $port)
232+
protected function handleSocks4(Stream $stream, $host, $port)
233233
{
234234
// do not resolve hostname. only try to convert to IP
235235
$ip = ip2long($host);

tests/ClientApiTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
<?php
22

33
use Clue\React\Socks;
4+
use Clue\React\Socks\Client;
45

56
class ClientApiTest extends TestCase
67
{
8+
/** @var Client */
9+
private $client;
10+
711
public function setUp()
812
{
913
$loop = React\EventLoop\Factory::create();

0 commit comments

Comments
 (0)