PHP 8.2 deprecation warning when using block label formatter

Created on 21 November 2023, 7 months ago
Updated 24 June 2024, 1 day ago

Problem/Motivation

eprecated function: Creation of dynamic property Drupal\block_field\Plugin\Field\FieldFormatter\BlockFieldLabelFormatter::$currentUser is deprecated in Drupal\block_field\Plugin\Field\FieldFormatter\BlockFieldLabelFormatter->__construct() (line 45 of modules/contrib/block_field/src/Plugin/Field/FieldFormatter/BlockFieldLabelFormatter.php).
Drupal\block_field\Plugin\Field\FieldFormatter\BlockFieldLabelFormatter->__construct('block_field_label', 

Steps to reproduce

Use the block field label formatter for viewing the block and press save

Proposed resolution

Add the property to the class.

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany yobottehg

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024