PHP 8.2 Creation of dynamic property $connection is deprecated

Created on 2 January 2024, 12 months ago
Updated 5 June 2024, 7 months ago

Problem/Motivation

When using PHP 8.2 the following warning is displayed:

Deprecated function: Creation of dynamic property Drupal\read_time\ReadTimeManager::$connection is deprecated in Drupal\read_time\ReadTimeManager->__construct() (line 34 of modules/contrib/read_time/src/ReadTimeManager.php).

Proposed resolution

Declared in the $connection in the ReadTimeManager class.

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇬🇧United Kingdom 3li U.K. 🇬🇧

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