The creation of dynamic properties is deprecated on PHP 8.2

Created on 16 January 2024, 11 months ago
Updated 23 April 2024, 8 months ago

Problem/Motivation

The creation of dynamic properties is deprecated.
The warning message on PHP 8.2

Deprecated: Creation of dynamic property Drupal\paragraphs_browser_previewer\Plugin\Field\FieldWidget\ParagraphsBrowserPreviewerWidget::$uuid is deprecated in /web/modules/contrib/paragraphs_browser/src/Plugin/Field/FieldWidget/ParagraphsBrowserWidgetTrait.php on line 88

Proposed resolution

Adding the #[\AllowDynamicProperties] attribute to the class (which also applies to all child classes).

Remaining tasks

Need reviews

💬 Support request
Status

RTBC

Version

2.0

Component

Code

Created by

🇻🇳Vietnam linhnm

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

Comments & Activities

Production build 0.71.5 2024