Deprecated function warning in WebformTokenManager

Created on 16 May 2023, over 1 year ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

it appears that the WebformTokenManager class is trying to create a dynamic property $config on the fly which is deprecated in PHP.

Deprecated function: Creation of dynamic property Drupal\webform\WebformTokenManager::$config is deprecated in Drupal\webform\WebformTokenManager->__construct() (line 108 of /opt/drupal/web/modules/contrib/webform/src/WebformTokenManager.php)

Proposed resolution

Declaring the $config property in the WebformTokenManager class explicitly, instead of creating it dynamically. This would involve adding a protected $config; or public $config; line at the top of the class.

πŸ› Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Emilio Castellanos

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

Comments & Activities

Production build 0.71.5 2024