PHP8 Compatibility for dynamic properties

Created on 16 August 2023, 11 months ago

Problem/Motivation

Dynamic properties errors show up on each of the Field Tools menu items
Deprecated function: Creation of dynamic property Drupal\field_tools\Controller\FieldList::$currentRoute is deprecated in Drupal\field_tools\Controller\FieldList->__construct() (line 46 of modules/contrib/field_tools/src/Controller/FieldList.php).

Steps to reproduce

Navigate to Reports > Field List > Tools/References/Graph results in a dynamic properties error in various classes.

Proposed resolution

A patch file is added here to define those class properties prior to being set.

πŸ› Bug report
Status

Needs review

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States peachez

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

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

Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024