From 0ca45bf57b31087f3a5c2280f871552382b5ba1a Mon Sep 17 00:00:00 2001 From: catch 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 (cherry picked from commit db2e2d2544cc0e10fa9f0f17bc26f57db255d1f6) --- 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 08731ab9d7a..6c614097cf0 100644 --- a/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php +++ b/core/lib/Drupal/Core/Config/Entity/ConfigEntityBase.php @@ -18,6 +18,7 @@ use Drupal\Core\Plugin\PluginDependencyTrait; * * @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 be92a25fc17..b775e992bdb 100644 --- a/core/lib/Drupal/Core/Extension/Extension.php +++ b/core/lib/Drupal/Core/Extension/Extension.php @@ -10,6 +10,7 @@ namespace Drupal\Core\Extension; * * @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 1d5afc118c9..dca96339738 100644 --- a/core/modules/views/src/Plugin/views/PluginBase.php +++ b/core/modules/views/src/Plugin/views/PluginBase.php @@ -37,6 +37,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; * * @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 57c18eeee14..14137a8c4f2 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 @@ use Drupal\Core\Plugin\PluginBase; * * 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 30814bf6281..2399f699838 100644 --- a/core/modules/views/src/ResultRow.php +++ b/core/modules/views/src/ResultRow.php @@ -5,6 +5,7 @@ namespace Drupal\views; /** * A class representing a view result row. */ +#[\AllowDynamicProperties] class ResultRow { /**