PHP 8.2 deprecation error on dynamic property creation

Created on 13 June 2024, 6 months ago
Updated 28 June 2024, 6 months ago

Problem/Motivation

Creation of dynamic property is deprecated in PHP 8.2

Deprecated function: Creation of dynamic property Drupal\simple_global_filter\Plugin\views\filter\GlobalFilter::$valueTitle is deprecated in Drupal\simple_global_filter\Plugin\views\filter\GlobalFilter->init() (line 31 of modules/contrib/simple_global_filter/src/Plugin/views/filter/GlobalFilter.php).

Steps to reproduce

Just update to PHP 8.2 and visit a page that has a simple global filter.

Proposed resolution

Declare the property.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024