Skip to content

Commit 7ba678c

Browse files
committed
:octocat:
1 parent 0430874 commit 7ba678c

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

src/CurlUtils/CurlHandleInterface.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,28 @@ interface CurlHandleInterface{
7575
50 => 'application verification failure',
7676
];
7777

78+
/**
79+
* CurlHandleInterface constructor.
80+
*
81+
* @param \Psr\Http\Message\RequestInterface $request
82+
* @param \Psr\Http\Message\ResponseInterface $response
83+
* @param \chillerlan\Settings\SettingsContainerInterface $options
84+
*/
7885
public function __construct(RequestInterface $request, ResponseInterface $response, SettingsContainerInterface $options);
7986

87+
/**
88+
* @return \chillerlan\HTTP\CurlUtils\CurlHandleInterface
89+
*/
8090
public function init():CurlHandleInterface;
8191

92+
/**
93+
* @return \chillerlan\HTTP\CurlUtils\CurlHandleInterface
94+
*/
8295
public function close():CurlHandleInterface;
8396

97+
/**
98+
* @return \chillerlan\HTTP\CurlUtils\CurlHandleInterface
99+
*/
84100
public function reset():CurlHandleInterface;
85101

86102
}

src/CurlUtils/CurlMultiClient.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,7 @@ protected function createHandle(RequestInterface $request = null, int $id = null
216216
$request = array_shift($this->requests);
217217
}
218218

219-
/** @var \chillerlan\HTTP\CurlUtils\CurlHandle $handle */
219+
/** @var \chillerlan\HTTP\CurlUtils\CurlHandleInterface $handle */
220220
$handle = new $this->options->curlHandle($request, $this->responseFactory->createResponse(), $this->options);
221221
$handle->id = $id ?? $this->handleCounter++;
222222
$handle->retries = $retries ?? 1;

0 commit comments

Comments
 (0)