![Announcement icon Announcement icon](https://www.drupal.org/files/styles/grid-2-2x-square/public/announcements/drupal-evergreen-logo-280X280px%20%281%29_0.jpg?itok=PHpn6rCb)
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | read_time-fix-connection-depreated-3411848-2.patch | 407 bytes | 3li |
Issue fork read_time-3411848
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
Comment #2
3liComment #3
keshavv CreditAttribution: keshavv as a volunteer and at Axelerant for Drupal India Association commentedI also have found the same issue in my project. The given patch works for me.
We can merge it. Thank you.
Comment #6
joco_sp CreditAttribution: joco_sp at Sergeant commentedThank you. It's added to 2.x. It will be available in the next release.
Comment #7
joco_sp CreditAttribution: joco_sp at Sergeant commented