Creation of dynamic property is deprecated

Created on 17 January 2024, over 1 year ago
Updated 18 January 2024, about 1 year ago

Problem/Motivation

Updating to PHP version 8.2 is causing a whole bunch of deprecation errors for dynamic properties throughout the whole suite.

Some examples are:

Deprecated: Creation of dynamic property Drupal\salesforce\Rest\RestResponseDescribe::$custom
is deprecated in /app/docroot/modules/contrib/salesforce/src/Rest/RestResponseDescribe.php on line 53

Deprecated: Creation of dynamic property Drupal\salesforce_webform \Plugin|SalesforceMappingField WebformElements::$dateFormatter is deprecated in salesforce/modules/salesforce_mapping/src/SalesforceMappingFieldPluginBase.php on line 143

I think for the RestResponseDescribe class we could fix that by adding the #[AllowDynamicProperties] attribute.

https://php.watch/versions/8.2/dynamic-properties-deprecated#AllowDynami...

🐛 Bug report
Status

Closed: duplicate

Version

5.0

Component

salesforce.module

Created by

🇧🇬Bulgaria yivanov

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024