PHP 8.2 compatibility

Created on 15 February 2024, 8 months ago

Problem/Motivation

With D10 comes PHP 8.2 support. Unfortunately the Bynder module is throwing several deprecations. Mainly the creation of dynamic properties.

Steps to reproduce

- Install D10
- PHP 8.2
- Install Bynder
- Go to /admin/configuration

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).

- Go to /admin/config/services/bynder

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).

Proposed resolution

Make the module PHP 8.2 compatible while still trying to keep backwards compatibility with 8.1

Remaining tasks

MR

User interface changes

N/A

API changes

N/A

Data model changes

N/A

📌 Task
Status

Closed: works as designed

Version

4.0

Component

Code

Created by

🇧🇪Belgium BramDriesen Belgium 🇧🇪

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024