diff --git a/CHANGELOG.md b/CHANGELOG.md index b0d1133e..1afc0b0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [v4.13.0](https://github.com/plivo/plivo-php/releases/tag/v4.13.0) - 2020-10-13 +- Add support to Guzzle HTTP client 7. +- Fix "issue-168", _Undefined index: from_number_ error - Retrieve Message Details API with Invalid message UUID. + ## [v4.12.0](https://github.com/plivo/plivo-php/releases/tag/v4.12.0) - 2020-09-21 - Add support for Lookup API. diff --git a/README.md b/README.md index 513cdbde..6e83f26c 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,8 @@ The Plivo PHP SDK makes it simpler to integrate communications into your PHP applications using the Plivo REST API. Using the SDK, you will be able to make voice calls, send SMS and generate Plivo XML to control your call flows. +**Supported PHP Versions**: This SDK works with PHP 7.1.0+. + ## Installation ### To install Composer diff --git a/composer.json b/composer.json index a85547ac..72b3dc2c 100644 --- a/composer.json +++ b/composer.json @@ -17,7 +17,8 @@ "source": "https://github.com/plivo/plivo-php" }, "require": { - "guzzlehttp/guzzle": "^6.0", + "php": ">=7.1.0", + "guzzlehttp/guzzle": "^6.3 || ^7.0", "firebase/php-jwt": "^5.2" }, "autoload": { diff --git a/src/Plivo/Resources/Message/MessageInterface.php b/src/Plivo/Resources/Message/MessageInterface.php index e302e7e7..ad2390f3 100644 --- a/src/Plivo/Resources/Message/MessageInterface.php +++ b/src/Plivo/Resources/Message/MessageInterface.php @@ -49,10 +49,7 @@ public function get($messageUuid) $this->uri . $messageUuid .'/', [] ); - - return new Message( - $this->client, $response->getContent(), - $this->pathParams['authId'], $this->uri); + return json_encode($response->getContent(), JSON_FORCE_OBJECT); } diff --git a/src/Plivo/Version.php b/src/Plivo/Version.php index ed7bca0d..89eb5641 100644 --- a/src/Plivo/Version.php +++ b/src/Plivo/Version.php @@ -20,7 +20,7 @@ class Version /** * @const int PHP helper library minor version number */ - const MINOR = 12; + const MINOR = 13; /** * @const int PHP helper library patch number */