PHP 8.2 Deprecated function: Creation of dynamic property OmegaThemeRegistryHandler::$trail is deprecated

Created on 22 March 2024, 8 months ago
Updated 13 May 2024, 6 months ago

Problem/Motivation

On PHP8.2 I caught an error message

Deprecated function: Creation of dynamic property OmegaThemeRegistryHandler::$trail is deprecated in OmegaThemeRegistryHandler->__construct() (line 37 of .../omega/omega/includes/registry.inc).

Steps to reproduce

Switch to PHP8.2 and check dblog

Proposed resolution

I would suggest adding #[\AllowDynamicProperties]. Also, we can add array property, however, I think there may be some issues with some legacy code and theme inheritance if they return NULL.

🐛 Bug report
Status

RTBC

Version

4.3

Component

Code

Created by

🇧🇾Belarus Andrei Haurukovich Minsk

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024