Add schema wrapper argument to \Drupal\Core\Config\StorableConfigBase::castValue() and do not store it as a property on the config object

Created on 10 July 2025, 1 day ago

Problem/Motivation

πŸ› Saving untrusted config results in memory leak Active fixes a memory leak due to the \Drupal\Core\Config\StorableConfigBase::$schemaWrapper property. But we can refactor \Drupal\Core\Config\StorableConfigBase::castValue() so we don't need to store it as a property.

Proposed resolution

Add the schema wrapper as an argument to castValue() and do not store it as a property.

Remaining tasks

User interface changes

None

Introduced terminology

N/a

API changes

TBD

Data model changes

None

Release notes snippet

N/a

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

configuration system

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

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

Comments & Activities

Production build 0.71.5 2024