Skip to content

Commit

Permalink
version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
narayana-plivo committed Oct 13, 2020
1 parent dcdfc34 commit e2c42de
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
# Change Log
## [v4.12.0](https://github.com/plivo/plivo-php/releases/tag/v4.12.0) - 2020-10-06
- Upgarde Guzzle Http cleint Version 6 to 7.

## [v4.11.1](https://github.com/plivo/plivo-php/releases/tag/v4.11.1) - 2020-09-17
- Fix "Media is invalid" error while using Send MMS API.
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"source": "https://github.com/plivo/plivo-php"
},
"require": {
"guzzlehttp/guzzle": "^7.0",
"php": ">=7.1.0",
"guzzlehttp/guzzle": "^6.3 || ^7.0",
"firebase/php-jwt": "^5.2"
},
"autoload": {
Expand Down
6 changes: 3 additions & 3 deletions src/Plivo/HttpClients/PlivoGuzzleHttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use Plivo\Http\PlivoResponse;

use GuzzleHttp\Client;
use GuzzleHttp\Exception\TransferException;
use GuzzleHttp\Exception\RequestException;


/**
Expand Down Expand Up @@ -131,9 +131,9 @@ public function send_request($url, $method, $body, $headers, $timeOut, $request)
}
try {
$rawResponse = $this->guzzleClient->request($method, $url, $options);
} catch (TransferException $e) {
} catch (RequestException $e) {
throw new PlivoRequestException($e->getMessage());
}
}
$rawHeaders = $rawResponse->getHeaders();
$rawBody = $rawResponse->getBody()->getContents();
$httpStatusCode = $rawResponse->getStatusCode();
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Version
/**
* @const int PHP helper library minor version number
*/
const MINOR = 11;
const MINOR = 12;
/**
* @const int PHP helper library patch number
*/
Expand Down

0 comments on commit e2c42de

Please sign in to comment.