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

Commit e2a77d6

Browse files
committed
Updates dependencies
1 parent f7c13b7 commit e2a77d6

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
"require": {
1818
"php": ">=5.4",
19-
"php-http/adapter-common": "dev-master",
19+
"php-http/adapter": "dev-internal_separation",
2020
"guzzlehttp/guzzle": "~6.0"
2121
},
2222
"require-dev": {

src/Guzzle6HttpAdapter.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
use GuzzleHttp\ClientInterface;
1616
use GuzzleHttp\Exception\RequestException;
1717
use GuzzleHttp\Pool;
18-
use Http\Adapter\Common\Exception\HttpAdapterException;
19-
use Http\Adapter\Common\Exception\MultiHttpAdapterException;
2018
use Psr\Http\Message\RequestInterface;
2119
use Psr\Http\Message\ResponseInterface;
2220

@@ -75,7 +73,7 @@ public function sendRequests(array $requests, array $options = [])
7573
}
7674

7775
if (count($exceptions) > 0) {
78-
throw new MultiHttpAdapterException($exceptions, $responses);
76+
throw new Exception\MultiHttpAdapterException($exceptions, $responses);
7977
}
8078

8179
return $results;
@@ -94,11 +92,11 @@ public function getName()
9492
*
9593
* @param RequestException $exception
9694
*
97-
* @return HttpAdapterException
95+
* @return Exception\HttpAdapterException
9896
*/
9997
private function createException(RequestException $exception)
10098
{
101-
$adapterException = new HttpAdapterException(
99+
$adapterException = new Exception\HttpAdapterException(
102100
$exception->getMessage(),
103101
0,
104102
$exception

0 commit comments

Comments
 (0)