diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a989fec..4ba7f0f3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,7 +5,13 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/1.3.1...HEAD) +## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/1.3.3...HEAD) + +## [1.3.3](https://github.com/HubSpot/hubspot-api-php/releases/tag/1.3.3) - 2020-08-25 + +### fixed + - downgreate codegen to 1.3.1 + - Fixed HubSpot/Configs ## [1.3.1](https://github.com/HubSpot/hubspot-api-php/releases/tag/1.3.1) - 2020-06-25 diff --git a/composer.json b/composer.json index fa5046dc..7775e8c9 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,6 @@ { "name": "hubspot/api-client", - "version": "1.3.1", + "version": "1.3.3", "description": "Hubspot API client", "keywords": [ "hubspot", diff --git a/lib/Config.php b/lib/Config.php index 324f1055..119d79f0 100644 --- a/lib/Config.php +++ b/lib/Config.php @@ -33,12 +33,9 @@ public function convertToClientConfig($clientConfigClassName) { /** @var Configuration $clientConfig */ $clientConfig = new $clientConfigClassName(); - if (null !== $this->apiKey) { - $clientConfig->setApiKey(static::API_KEY_IDENTIFIER, $this->apiKey); - } - if (null !== $this->accessToken) { - $clientConfig->setAccessToken($this->accessToken); - } + + $clientConfig->setApiKey(static::API_KEY_IDENTIFIER, $this->apiKey); + $clientConfig->setAccessToken($this->accessToken); $clientConfig->setUserAgent($this->userAgent);