Remove AllowDynamicProperties attribute from JoinPluginBase

Created on 25 July 2022, almost 2 years ago
Updated 22 February 2023, over 1 year ago

Problem/Motivation

part of 🌱 [META] Get rid of #[\AllowDynamicProperties] attribute Active
Remove attribute added in #3299853: Apply #[\AllowDynamicProperties] attribute to base classes to make PHP 8.2 log size sane β†’ for JoinPluginBase

The test to catch it is \Drupal\Tests\workspaces\Kernel\WorkspaceIntegrationTest::testWorkspaces()

Unsilenced deprecation notices (24)

  24x: Creation of dynamic property Drupal\views\Plugin\views\join\Standard::$workspace_adjusted is deprecated
    24x in WorkspaceIntegrationTest::testWorkspaces from Drupal\Tests\workspaces\Kernel

Proposed resolution

Use WeakMap inside of \Drupal\workspaces\ViewsQueryAlter as this pseudo-service is re-created for each query alter hook, see workspaces_views_query_alter()

Remaining tasks

- agree
- patch/review/commit

User interface changes

no

API changes

TBD

Data model changes

no

Release notes snippet

no

πŸ“Œ Task
Status

Fixed

Version

10.1 ✨

Component
ViewsΒ  β†’

Last updated 30 minutes ago

Created by

πŸ‡«πŸ‡·France andypost

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024