diff --git a/lib/Tmdb/Client.php b/lib/Tmdb/Client.php index 686bf872..9d92168d 100644 --- a/lib/Tmdb/Client.php +++ b/lib/Tmdb/Client.php @@ -54,11 +54,11 @@ public function __construct(Token $token, ClientInterface $httpClient = null) { $httpClient = $httpClient ?: new GuzzleClient(self::TMDB_URI); - $plugin = new ApiTokenPlugin($token); - $httpClient->addSubscriber($plugin); + $apiQueryTokenPlugin = new ApiTokenPlugin($token); + $httpClient->addSubscriber($apiQueryTokenPlugin); - $plugin = new AcceptJsonHeader(); - $httpClient->addSubscriber($plugin); + $acceptJsonHeaderPlugin = new AcceptJsonHeader(); + $httpClient->addSubscriber($acceptJsonHeaderPlugin); $this->httpClient = new HttpClient(self::TMDB_URI, array(), $httpClient); $this->setToken($token);