Issue #3311383 by andypost, Berdir: Apply #[\AllowDynamicProperties] attribute to core classes to allow contrib has less noise in logs

(cherry picked from commit 6fc9b6b74ff9e76fad6b52ac4768cce68dab0740)
merge-requests/2650/merge
catch 2022-09-24 21:57:09 +01:00
parent 2277e2e1d9
commit 0f5ce77db1
6 changed files with 6 additions and 0 deletions

View File

@ -25,6 +25,7 @@ namespace Drupal\Component\Diff\Engine;
* @private
* @subpackage DifferenceEngine
*/
#[\AllowDynamicProperties]
class DiffEngine {
const USE_ASSERTS = FALSE;

View File

@ -5,6 +5,7 @@ namespace Drupal\Component\Plugin\Definition;
/**
* Provides object-based plugin definitions.
*/
#[\AllowDynamicProperties]
class PluginDefinition implements PluginDefinitionInterface {
/**

View File

@ -7,6 +7,7 @@ namespace Drupal\Core\Session;
*
* @todo: Change all properties to protected.
*/
#[\AllowDynamicProperties]
class UserSession implements AccountInterface {
/**

View File

@ -95,6 +95,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
*
* @link https://www.drupal.org/docs/8/api/migrate-api Migrate API handbook. @endlink
*/
#[\AllowDynamicProperties]
class Migration extends PluginBase implements MigrationInterface, RequirementsInterface, ContainerFactoryPluginInterface {
/**

View File

@ -24,6 +24,7 @@ use Symfony\Component\Routing\Exception\RouteNotFoundException;
* @see https://www.drupal.org/node/2849674
* @see https://bugs.php.net/bug.php?id=66052
*/
#[\AllowDynamicProperties]
class ViewExecutable {
/**

View File

@ -23,6 +23,7 @@ use Symfony\Component\HttpFoundation\Request;
/**
* Stores UI related temporary settings.
*/
#[\AllowDynamicProperties]
class ViewUI implements ViewEntityInterface {
/**