Skip to content

Commit 44cffd1

Browse files
authored
Added some test cases and optimized the code comments. (#5845)
1 parent 3674149 commit 44cffd1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Sender.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
use Psr\Log\LoggerInterface;
2020
use Swoole\Http\Response;
2121
use Swoole\Server;
22-
use Swow\Http\Server\Connection;
22+
use Swow\Psr7\Server\ServerConnection;
2323

2424
/**
2525
* @method push(int $fd, $data, int $opcode = null, $finish = null)
@@ -32,7 +32,7 @@ class Sender
3232
protected ?int $workerId = null;
3333

3434
/**
35-
* @var Connection[]|Response[]
35+
* @var Response[]|ServerConnection[]
3636
*/
3737
protected array $responses = [];
3838

@@ -100,7 +100,7 @@ public function check($fd): bool
100100
* The responses of coroutine style swoole server.
101101
* Or connections of swow server.
102102
* And so on.
103-
* @param null|Connection|Response $response
103+
* @param null|Response|ServerConnection $response
104104
*/
105105
public function setResponse(int $fd, mixed $response): void
106106
{

0 commit comments

Comments
 (0)