PHP 8.2 error: Creation of dynamic property Drupal\salesforce\Rest\RestResponseDescribe::$hasSubtypes is deprecated

Created on 30 January 2024, 11 months ago
Updated 31 January 2024, 11 months ago

Problem/Motivation

When pushing salesforce entities to salesforce, the following error appears after upgrading to PHP 8.2:

Creation of dynamic property Drupal\salesforce\Rest\RestResponseDescribe::$hasSubtypes is deprecated in /var/www/html/web/modules/contrib/salesforce/src/Rest/RestResponseDescribe.php line 164 in Behat\Testwork\Call\Handler\RuntimeCallHandler->handleError() (line 90 of /var/www/html/vendor/behat/behat/src/Behat/Testwork/Call/Handler/RuntimeCallHandler.php).

Steps to reproduce

Push an entity to salesforce. Also it will fail in any context using RestResponseDescribe class.

Proposed resolution

Do not set properties that are not defined in RestResponseDescribe class.

🐛 Bug report
Status

Closed: duplicate

Version

5.0

Component

salesforce.module

Created by

🇪🇸Spain omarlopesino

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