PHP 8.2 deprecation issue with LcLayoutsManager

Created on 8 March 2024, 8 months ago

Problem/Motivation

Deprecated function: Creation of dynamic property Drupal\layoutcomponents\LcLayoutsManager::$tagOptions is deprecated in Drupal\Core\Render\ElementInfoManager->Drupal\Core\Render\{closure}() (line 131 of /home/william/code/davyin-cms/docroot/core/lib/Drupal/Core/Render/ElementInfoManager.php).

Drupal\Core\Render\ElementInfoManager->Drupal\Core\Render\{closure}(8192, 'Creation of dynamic property Drupal\layoutcomponents\LcLayoutsManager::$tagOptions is deprecated', '/home/william/code/davyin-cms/docroot/modules/contrib/layoutcomponents/src/LcLayoutsManager.php', 137) (Line: 137)

Steps to reproduce

Install it and view a page with the module on PHP 8.2

Proposed resolution

Add

  /**
   * Tag options.
   *
   * @var array
   */
  public $tagOptions = [];

  /**
   * Title border.
   *
   * @var array
   */
  public $titleBorder = [];

to LcLayoutsManager.php

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

3.0

Component

Code

Created by

🇨🇳China catcat811

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

Comments & Activities

Production build 0.71.5 2024