Skip to content

Commit

Permalink
Add Guzzle 7 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dmitry-ivanov committed Jul 1, 2020
1 parent 3e6420f commit 74180f5
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 74180f5

Please sign in to comment.