Skip to content

Commit

Permalink
Add Guzzle 7 support (#288)
Browse files Browse the repository at this point in the history
* Add Guzzle 7 support

* Update composer.json

Co-authored-by: Dariusz Rumiński <dariusz.ruminski@gmail.com>
  • Loading branch information
dmitry-ivanov and keradus committed Sep 24, 2020
1 parent 52e6048 commit 3949b49
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"php": "^5.5 || ^7.0",
"ext-json": "*",
"ext-simplexml": "*",
"guzzlehttp/guzzle": "^6.0",
"guzzlehttp/guzzle": "^6.0 || ^7.0",
"psr/log": "^1.0",
"symfony/config": "^2.1 || ^3.0 || ^4.0 || ^5.0",
"symfony/console": "^2.1 || ^3.0 || ^4.0 || ^5.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@ private function setUpJobsApiWithSendCalled($api, $statusCode, $request, $respon
->shouldBeCalled();
} else {
if ($statusCode === null) {
$exception = \GuzzleHttp\Exception\ConnectException::create($request);
$exception = new \GuzzleHttp\Exception\ConnectException('Connection refused', $request);
} elseif ($statusCode === 422) {
$exception = \GuzzleHttp\Exception\ClientException::create($request, $response);
} else {
Expand Down

0 comments on commit 3949b49

Please sign in to comment.