Creation of dynamic property deprecated

Created on 23 April 2024, 2 months ago
Updated 25 April 2024, 2 months ago

Problem/Motivation

The views date filter is using a dynamic property (dateFormatter) resulting in warnings:
Deprecated function: Creation of dynamic property Drupal\smart_date\Plugin\views\filter\Date::$dateFormatter is deprecated.

Steps to reproduce

Any view that uses the filter.

Proposed resolution

Define the dateFormatter property.

/**
   * The date formatter.
   * 
   * @var \Drupal\Core\Datetime\DateFormatterInterface 
   */
  protected $dateFormatter;

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇨🇦Canada tklawsuc

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

Comments & Activities

Production build 0.69.0 2024