Deprecation error messages about creation of dynamic properties in EdgeModules

Created on 13 August 2024, 4 months ago

Problem/Motivation

Seeing multiple error messages like Deprecated function: Creation of dynamic property Drupal\fastly\EdgeModules::$configFactory is deprecated in Drupal\fastly\EdgeModules->__construct() when visiting the Fastly Edge Modules config page.

Dynamic properties are deprecated as of php 8.2: https://php.watch/versions/8.2/dynamic-properties-deprecated

Steps to reproduce

  • Make sure you're on php version 8.2 (or later).
  • Install / update Drupal core to version 10.3.
  • Install / update Fastly module version 4.0.3.
  • Go to Fastly Edge Modules config page at /admin/config/services/fastly/edge-modules.

Proposed resolution

Declare all properties before using them.

Remaining tasks

  • Update Drupal\fastly\EdgeModules with missing property declarations.

User interface changes

-

API changes

-

Data model changes

-

🐛 Bug report
Status

Needs review

Version

4.0

Component

Code

Created by

🇫🇮Finland tohesi

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