Deprecated dynamic properties in panels_renderer_standard in PHP 8.2

Created on 23 August 2023, over 1 year ago
Updated 24 August 2023, over 1 year ago

Problem/Motivation

When used with the panelizer module, the following deprecation is thrown:

Deprecated function: Creation of dynamic property panels_renderer_standard::$address is deprecated in PanelizerEntityDefault->render_entity() (line 3435 of panelizer/plugins/entity/PanelizerEntityDefault.class.php).

Steps to reproduce

Display a page rendered using panelizer, e.g. with the standard renderer.

Proposed resolution

Add #[\AllowDynamicProperties] to the parent panels_renderer_standard class provided by panels. This allows other implementations to be more flexible with their property declarations.

This is a similar approach taken in 🐛 PHP 8.2 Compatibility Fixed

Remaining tasks

Review, commit

🐛 Bug report
Status

Fixed

Version

3.0

Component

Code

Created by

🇦🇺Australia fenstrat Australia

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

Comments & Activities

Production build 0.71.5 2024