From db2e2d2544cc0e10fa9f0f17bc26f57db255d1f6 Mon Sep 17 00:00:00 2001 From: catch <catch@35733.no-reply.drupal.org> Date: Tue, 26 Jul 2022 12:36:10 +0900 Subject: [PATCH] Issue #3299853 by andypost, kim.pepper: Apply #[\AllowDynamicProperties] attribute to base classes to make PHP 8.2 log size sane --- core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php | 1 + core/lib/Drupal/Core/Extension/Extension.php | 1 + core/modules/views/src/Plugin/views/PluginBase.php | 1 + core/modules/views/src/Plugin/views/join/JoinPluginBase.php | 1 + core/modules/views/src/ResultRow.php | 1 + 5 files changed, 5 insertions(+) diff --git a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php index 08731ab9d7a5..6c614097cf08 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php @@ -18,6 +18,7 @@ * * @ingroup entity_api */ +#[\AllowDynamicProperties] abstract class ConfigEntityBase extends EntityBase implements ConfigEntityInterface { use PluginDependencyTrait { diff --git a/core/lib/Drupal/Core/Extension/Extension.php b/core/lib/Drupal/Core/Extension/Extension.php index be92a25fc17c..b775e992bdbf 100644 --- a/core/lib/Drupal/Core/Extension/Extension.php +++ b/core/lib/Drupal/Core/Extension/Extension.php @@ -10,6 +10,7 @@ * * @see https://bugs.php.net/bug.php?id=66052 */ +#[\AllowDynamicProperties] class Extension { /** diff --git a/core/modules/views/src/Plugin/views/PluginBase.php b/core/modules/views/src/Plugin/views/PluginBase.php index 1d5afc118c95..dca963397381 100644 --- a/core/modules/views/src/Plugin/views/PluginBase.php +++ b/core/modules/views/src/Plugin/views/PluginBase.php @@ -37,6 +37,7 @@ * * @ingroup views_plugins */ +#[\AllowDynamicProperties] abstract class PluginBase extends ComponentPluginBase implements ContainerFactoryPluginInterface, ViewsPluginInterface, DependentPluginInterface, TrustedCallbackInterface { /** diff --git a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php index 57c18eeee143..14137a8c4f20 100644 --- a/core/modules/views/src/Plugin/views/join/JoinPluginBase.php +++ b/core/modules/views/src/Plugin/views/join/JoinPluginBase.php @@ -150,6 +150,7 @@ * * Extensions of this class can be used to create more interesting joins. */ +#[\AllowDynamicProperties] class JoinPluginBase extends PluginBase implements JoinPluginInterface { /** diff --git a/core/modules/views/src/ResultRow.php b/core/modules/views/src/ResultRow.php index 30814bf62810..2399f6998385 100644 --- a/core/modules/views/src/ResultRow.php +++ b/core/modules/views/src/ResultRow.php @@ -5,6 +5,7 @@ /** * A class representing a view result row. */ +#[\AllowDynamicProperties] class ResultRow { /** -- GitLab