diff --git a/CHANGELOG.md b/CHANGELOG.md index 73cb9e0..6959c0e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # CHANGELOG -the changelog was started from version 1.2.3 onwards. +the changelog was started from version 1.2.3 onwards. + +## 1.2.10 +* Added $enviroment variable to the ApiEndpointsLoader.php to prevent the Deprecation error on PHP 8.2+ ## 1.2.9 * added the a function to purgeServerCache(), which clears all known caches for the envinronment such as the Server and CDN. diff --git a/src/Servebolt/Client.php b/src/Servebolt/Client.php index 377f96b..0c89240 100644 --- a/src/Servebolt/Client.php +++ b/src/Servebolt/Client.php @@ -46,7 +46,7 @@ class Client public function __construct(array $config, bool $storeStatically = true) { if (!defined('SB_SDK_VERSION')) { - define('SB_SDK_VERSION', '1.2.4'); + define('SB_SDK_VERSION', '1.2.10'); } $this->initializeConfigHelper($config); $this->initializeHTTPClient(); diff --git a/src/Servebolt/Traits/ApiEndpointsLoader.php b/src/Servebolt/Traits/ApiEndpointsLoader.php index 725efc7..1ad62c5 100644 --- a/src/Servebolt/Traits/ApiEndpointsLoader.php +++ b/src/Servebolt/Traits/ApiEndpointsLoader.php @@ -5,6 +5,12 @@ trait ApiEndpointsLoader { + /** + * @var ConfigHelper + * @since php8.2 + */ + private $environment; + private $apiEndpoints = []; /**