3434use function fwrite ;
3535use function hexdec ;
3636use function implode ;
37- use function intval ;
3837use function is_resource ;
3938use function strlen ;
4039use function strpos ;
@@ -87,7 +86,7 @@ class Connection
8786 /*** @var mixed|null */
8887 private mixed $ output = null ;
8988
90- /*** @var \Ripple\Http\Client\ Capture|null */
89+ /*** @var Capture|null */
9190 private Capture |null $ capture = null ;
9291
9392 private WaitGroup $ waitGroup ;
@@ -129,12 +128,12 @@ private function reset(): void
129128 }
130129
131130 /**
132- * @param \Psr\Http\Message\ RequestInterface $request
131+ * @param RequestInterface $request
133132 * @param array $option
134133 *
135- * @return \GuzzleHttp\Psr7\ Response
136- * @throws \Ripple\Stream\Exception\ ConnectionException
137- * @throws \Ripple\Stream\Exception\ RuntimeException
134+ * @return Response
135+ * @throws ConnectionException
136+ * @throws RuntimeException
138137 */
139138 public function request (RequestInterface $ request , array $ option = []): Response
140139 {
@@ -149,12 +148,12 @@ public function request(RequestInterface $request, array $option = []): Response
149148 }
150149
151150 /**
152- * @param \Psr\Http\Message\ RequestInterface $request
151+ * @param RequestInterface $request
153152 * @param array $option
154153 *
155- * @return \GuzzleHttp\Psr7\ Response
156- * @throws \Ripple\Stream\Exception\ ConnectionException
157- * @throws \Ripple\Stream\Exception\ RuntimeException
154+ * @return Response
155+ * @throws ConnectionException
156+ * @throws RuntimeException
158157 */
159158 private function queue (RequestInterface $ request , array $ option = []): Response
160159 {
@@ -246,8 +245,6 @@ private function queue(RequestInterface $request, array $option = []): Response
246245 'Connection closed by peer ' ,
247246 ConnectionException::CONNECTION_CLOSED ,
248247 null ,
249- $ this ->stream ,
250- true
251248 );
252249 }
253250
@@ -302,7 +299,7 @@ public function tick(string|false $content): ResponseInterface|null
302299
303300 /**
304301 * @return ResponseInterface|null
305- * @throws \Ripple\Stream\Exception\ RuntimeException
302+ * @throws RuntimeException
306303 */
307304 public function tickClose (): ResponseInterface |null
308305 {
@@ -319,8 +316,8 @@ public function tickClose(): ResponseInterface|null
319316 }
320317
321318 /**
322- * @return \Psr\Http\Message\ ResponseInterface|null
323- * @throws \Ripple\Stream\Exception\ RuntimeException
319+ * @return ResponseInterface|null
320+ * @throws RuntimeException
324321 */
325322 public function process (): ResponseInterface |null
326323 {
0 commit comments