Fix PHP 8.2+ deprecation notices

Created on 23 February 2023, almost 2 years ago
Updated 15 May 2024, 7 months ago

Problem/Motivation

- The following warning pops up when using this module with PHP 8.2:
Deprecated function: Creation of dynamic property Drupal\content_lock\ContentLock\ContentLock::$time is deprecated in Drupal\content_lock\ContentLock\ContentLock->__construct() (line 139 of modules/contrib/content_lock/src/ContentLock/ContentLock.php).

Proposed resolution

- Attached MR

🐛 Bug report
Status

Closed: duplicate

Version

2.0

Component

Code

Created by

🇫🇮Finland j-vee Turku, Finland

Live updates comments and jobs are added and updated live.
  • PHP 8.2

    The issue particularly affects sites running on PHP version 8.2.0 or later.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024