Skip to content
This repository has been archived by the owner on Aug 24, 2022. It is now read-only.

Commit

Permalink
Merge pull request #29 from SRLabs-Forks/master
Browse files Browse the repository at this point in the history
Enable Support for both Guzzle 5 and 6
  • Loading branch information
jelovac authored Mar 8, 2017
2 parents 31dc5b8 + 4f47d5f commit e0dafde
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 20 deletions.
38 changes: 19 additions & 19 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
{
"name": "jelovac/bitly4laravel",
"description": "Provides a Laravel package to communicate with Bit.ly API",
"license": "MIT",
"require": {
"php": ">=5.4",
"illuminate/support": "~4|~5",
"guzzlehttp/guzzle": "~5"
},
"require-dev": {
"phpunit/phpunit": "4.4.*"
},
"autoload": {
"psr-0": {
"Jelovac\\Bitly4laravel\\": "src/"
}
},
"minimum-stability": "dev"
}
{
"name": "jelovac/bitly4laravel",
"description": "Provides a Laravel package to communicate with Bit.ly API",
"license": "MIT",
"require": {
"php": ">=5.4",
"illuminate/support": "~4|~5",
"guzzlehttp/guzzle": "~5|~6"
},
"require-dev": {
"phpunit/phpunit": "4.4.*"
},
"autoload": {
"psr-0": {
"Jelovac\\Bitly4laravel\\": "src/"
}
},
"minimum-stability": "dev"
}
2 changes: 1 addition & 1 deletion src/Jelovac/Bitly4laravel/API.php
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ protected function call($action, array $params = array())
case 'json':

default:
$body = $response->json();
$body = method_exists($response, 'json') ? $response->json() : json_decode($response->getBody());
}

return $body;
Expand Down

0 comments on commit e0dafde

Please sign in to comment.