Creation of dynamic property OverridesSectionStorage::$initializedContextConfig

Created on 27 August 2024, 4 months ago

Problem/Motivation

I just updated to Drupal 10.3.2 and I get the following warning on PHP 8.2.

Creation of dynamic property Drupal\layout_builder_st\Plugin\SectionStorage\OverridesSectionStorage::$initializedContextConfig is deprecated in Drupal\Component\Serialization\PhpSerialize::decode() (line 21 of core/lib/Drupal/Component/Serialization/PhpSerialize.php)

Seems like there are records in the database that contain that "$initializedContextConfig". When trying to unserialize those records, PHP raises the deprecation warning.

Steps to reproduce

Upgrade to Drupal 10.3.2 with existing nodes that have custom layouts.

Proposed resolution

Not sure. Maybe, implement a __wake() that will handle the non-existent property?

Remaining tasks

?

User interface changes

?

API changes

Data model changes

?

📌 Task
Status

Active

Component

Code

Created by

🇨🇦Canada jigarius Montréal

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

Comments & Activities

Production build 0.71.5 2024