Skip to content

Commit

Permalink
small phpdoc change
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenmanz committed Sep 17, 2017
1 parent 9748902 commit 003fc32
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Adapter/PlentymarketsAdapter/Client/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Assert\Assertion;
use Closure;
use Exception;
use GuzzleHttp\Client as GuzzleClient;
use GuzzleHttp\ClientInterface as GuzzleClientInterface;
use GuzzleHttp\Exception\ClientException;
use GuzzleHttp\Exception\ServerException;
Expand Down Expand Up @@ -44,11 +43,11 @@ class Client implements ClientInterface
/**
* Client constructor.
*
* @param GuzzleClient $connection
* @param GuzzleClientInterface $connection
* @param ConfigServiceInterface $config
*/
public function __construct(
GuzzleClient $connection,
GuzzleClientInterface $connection,
ConfigServiceInterface $config
) {
$this->connection = $connection;
Expand Down Expand Up @@ -115,6 +114,10 @@ public function request($method, $path, array $params = [], $limit = null, $offs
try {
$response = $this->connection->send($request);

if (null === $response) {
throw InvalidResponseException::fromParams($method, $path, $options);
}

$body = $response->getBody();

if (null === $body) {
Expand Down

0 comments on commit 003fc32

Please sign in to comment.