Bynder / bynder-php-sdk

SDK in PHP for integration with Bynder
MIT License
14 stars 22 forks source link

PHP 8.x compatibility #56

Open grant-ellis-skyscanner opened 1 year ago

grant-ellis-skyscanner commented 1 year ago

Would it be possible to release a version of the SDK that supports PHP 8.x?

kovinet commented 1 year ago

So it means that latest release (2.1.9) is not compatible with PHP 8.1?

Crovitche-1623 commented 1 year ago

For me, It works with PHP 8.2

MrDaleSmith commented 1 year ago

I get a PHP Deprecation warning on PHP 8.2:

Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$requestOptions is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 33 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php).

JensVranckxLiip commented 9 months ago

Hi All,

When installing V 2.2.0 through a fresh drupal Bynder contrib install on PHP 8.2.5 following deprecation errors are shown:

Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$requestOptions is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 33 of /app/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php). (As the comment above)

Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$package is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 35 of /app/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php).

Deprecated function: Creation of dynamic property Bynder\Api\BynderClient::$configuration is deprecated in Bynder\Api\BynderClient->__construct() (line 30 of /app/vendor/bynder/bynder-php-sdk/src/Bynder/Api/BynderClient.php).

BramDriesen commented 9 months ago

I'm getting a lot of deprecations on PHP 8.2.

Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$requestOptions is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 33 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php).

Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$package is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 35 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php).

Deprecated function: Creation of dynamic property Bynder\Api\BynderClient::$configuration is deprecated in Bynder\Api\BynderClient->__construct() (line 30 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/BynderClient.php).

Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$requestOptions is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 33 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php).

Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$package is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 35 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php).

Deprecated function: Creation of dynamic property Bynder\Api\BynderClient::$configuration is deprecated in Bynder\Api\BynderClient->__construct() (line 30 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/BynderClient.php).
Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$requestOptions is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 33 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php).

Deprecated function: Creation of dynamic property Bynder\Api\Impl\PermanentTokens\Configuration::$package is deprecated in Bynder\Api\Impl\PermanentTokens\Configuration->__construct() (line 35 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/Impl/PermanentTokens/Configuration.php).

Deprecated function: Creation of dynamic property Bynder\Api\BynderClient::$configuration is deprecated in Bynder\Api\BynderClient->__construct() (line 30 of /var/www/html/vendor/bynder/bynder-php-sdk/src/Bynder/Api/BynderClient.php).