Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit 6f108cf

Browse files
authored
Merge pull request #79 from php-http/fix-cs
fix cs
2 parents d1fe47c + 8370a12 commit 6f108cf

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/Promise.php

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,6 @@ final class Promise implements HttpPromise
4444
*/
4545
private $request;
4646

47-
/**
48-
* @param PromiseInterface $promise
49-
* @param RequestInterface $request
50-
*/
5147
public function __construct(PromiseInterface $promise, RequestInterface $request)
5248
{
5349
$this->request = $request;
@@ -108,13 +104,8 @@ public function wait($unwrap = true)
108104

109105
/**
110106
* Converts a Guzzle exception into an Httplug exception.
111-
*
112-
* @param GuzzleExceptions\GuzzleException $exception
113-
* @param RequestInterface $request
114-
*
115-
* @return HttplugException
116107
*/
117-
private function handleException(GuzzleExceptions\GuzzleException $exception, RequestInterface $request)
108+
private function handleException(GuzzleExceptions\GuzzleException $exception, RequestInterface $request): HttplugException
118109
{
119110
if ($exception instanceof GuzzleExceptions\SeekException) {
120111
return new HttplugException\RequestException($exception->getMessage(), $request, $exception);

0 commit comments

Comments
 (0)