From 43fd4cb0ccb1fc0aa6d5153ad3c73b5b78665a1d Mon Sep 17 00:00:00 2001 From: Bram Driesen Date: Tue, 27 Aug 2024 17:38:27 +0200 Subject: [PATCH] PHP 8.x compatibility #56 (#70) * Fix PHP 8.2 deprecation * fix: PHP 8.2 deprecations fixed * fix: PHP8.2 Deprecations --- src/Bynder/Api/BynderClient.php | 5 ++++ src/Bynder/Api/Impl/OAuth2/Configuration.php | 26 ++++++++++++++++++- .../Impl/PermanentTokens/Configuration.php | 19 +++++++++++++- 3 files changed, 48 insertions(+), 2 deletions(-) diff --git a/src/Bynder/Api/BynderClient.php b/src/Bynder/Api/BynderClient.php index a0ec0b4..998df3b 100644 --- a/src/Bynder/Api/BynderClient.php +++ b/src/Bynder/Api/BynderClient.php @@ -17,6 +17,11 @@ class BynderClient */ private $assetBankManager; + /** + * @var Configuration The configuration object. + */ + private $configuration; + public function __construct($configuration) { if ($configuration instanceof PermanentTokens\Configuration) { diff --git a/src/Bynder/Api/Impl/OAuth2/Configuration.php b/src/Bynder/Api/Impl/OAuth2/Configuration.php index 4caae39..464ee08 100644 --- a/src/Bynder/Api/Impl/OAuth2/Configuration.php +++ b/src/Bynder/Api/Impl/OAuth2/Configuration.php @@ -17,22 +17,46 @@ */ class Configuration { + /** + * @var string The Bynder domain. + */ private $bynderDomain; - private $rootDir; + + /** + * @var string The redirect URI. + */ private $redirectUri; /** * @var string Client ID. */ private $clientId; + /** * @var string Client Secret. */ private $clientSecret; + /** * @var string Access token. */ private $token; + + /** + * @var array Request options. + */ + private $requestOptions; + + /** + * @var string Root directory. + */ + private $rootDir; + + /** + * @var object The package. + */ + private $package; + /** * @var string Initial access token, used for logout. */ diff --git a/src/Bynder/Api/Impl/PermanentTokens/Configuration.php b/src/Bynder/Api/Impl/PermanentTokens/Configuration.php index 4457b73..f828150 100644 --- a/src/Bynder/Api/Impl/PermanentTokens/Configuration.php +++ b/src/Bynder/Api/Impl/PermanentTokens/Configuration.php @@ -11,14 +11,31 @@ class Configuration { + /** + * @var string The Bynder domain. + */ private $bynderDomain; - private $rootDir; /** * @var string Permanent token. */ private $token; + /** + * @var array Request options. + */ + private $requestOptions; + + /** + * @var string The root dir. + */ + private $rootDir; + + /** + * @var object The package. + */ + private $package; + /** * Initialises a new instance with the specified params. *