Creation of dynamic properties is deprecated

Created on 19 February 2024, 10 months ago
Updated 19 August 2024, 4 months ago

Problem/Motivation

Bookable Calendar uses a deprecated function, which throws a warning:

Deprecated function: Creation of dynamic property Drupal\bookable_calendar\Notification::$messenger is deprecated in Drupal\bookable_calendar\Notification->__construct() (line 75 of modules/contrib/bookable_calendar/src/Notification.php).

Steps to reproduce

While running PHP 8.2 on Drupal 10.2.x, create a new booking. This results in the warning.

Proposed resolution

Per this PHP doc, creation of dynamic properties is deprecated and need updating the code to be compatible with PHP 8.2

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.2

Component

Code

Created by

🇧🇪Belgium tijsdeboeck Antwerp 🇧🇪 🇪🇺 🌎

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

Comments & Activities

Production build 0.71.5 2024