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.

Issue fork read_time-3411848

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

3li created an issue. See original summary.

3li’s picture

Status: Active » Needs review
StatusFileSize
new407 bytes
keshavv’s picture

Status: Needs review » Reviewed & tested by the community

I also have found the same issue in my project. The given patch works for me.
We can merge it. Thank you.

joco_sp made their first commit to this issue’s fork.

joco_sp’s picture

Thank you. It's added to 2.x. It will be available in the next release.

joco_sp’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.