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

Commit

Permalink
Merge pull request #79 from php-http/fix-cs
Browse files Browse the repository at this point in the history
fix cs
  • Loading branch information
dbu authored Nov 11, 2020
2 parents d1fe47c + 8370a12 commit 6f108cf
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/Promise.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ final class Promise implements HttpPromise
*/
private $request;

/**
* @param PromiseInterface $promise
* @param RequestInterface $request
*/
public function __construct(PromiseInterface $promise, RequestInterface $request)
{
$this->request = $request;
Expand Down Expand Up @@ -108,13 +104,8 @@ public function wait($unwrap = true)

/**
* Converts a Guzzle exception into an Httplug exception.
*
* @param GuzzleExceptions\GuzzleException $exception
* @param RequestInterface $request
*
* @return HttplugException
*/
private function handleException(GuzzleExceptions\GuzzleException $exception, RequestInterface $request)
private function handleException(GuzzleExceptions\GuzzleException $exception, RequestInterface $request): HttplugException
{
if ($exception instanceof GuzzleExceptions\SeekException) {
return new HttplugException\RequestException($exception->getMessage(), $request, $exception);
Expand Down

0 comments on commit 6f108cf

Please sign in to comment.