Skip to content

Commit

Permalink
>=php5.3.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy committed May 11, 2016
1 parent 50c2100 commit cfa3b22
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
}
],
"require": {
"php": ">=5.4.0",
"guzzlehttp/guzzle": "^5.3.0",
"jms/serializer": "^1.1"
"php": ">=5.3.3",
"guzzlehttp/guzzle": "^v3.8.1",
"jms/serializer": "^0.16.0"
},
"require-dev": {
"phpunit/phpunit": "~4.0"
Expand Down
6 changes: 3 additions & 3 deletions src/Api.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Andyftw\SSLLabs;

use GuzzleHttp\Client;
use Guzzle\Http\Client;
use JMS\Serializer\SerializerBuilder;

/**
Expand Down Expand Up @@ -160,8 +160,8 @@ private function request($call, $parameters = [])
private function json($call, $type, $parameters = [])
{
try {
$response = $this->request($call, $parameters);
$content = (string) $response->getBody();
$request = $this->request($call, $parameters);
$content = (string) $request->send()->getBody();

return $this->serializer->deserialize($content, $type, 'json');
} catch (\Exception $e) {
Expand Down

0 comments on commit cfa3b22

Please sign in to comment.