Deprecated function: Creation of dynamic property

Created on 6 September 2023, over 1 year ago
Updated 20 September 2023, over 1 year ago

Problem/Motivation

Deprecated function errors on Akamai config form page:

Deprecated function: Creation of dynamic property Drupal\akamai\Form\ConfigForm::$keyProvider is deprecated in Drupal\akamai\Form\ConfigForm->__construct() (line 56 of modules/contrib/akamai/src/Form/ConfigForm.php).

Deprecated function: Creation of dynamic property Drupal\akamai\Form\ConfigForm::$moduleHandler is deprecated in Drupal\akamai\Form\ConfigForm->__construct() (line 58 of modules/contrib/akamai/src/Form/ConfigForm.php).

Steps to reproduce

  1. Install the akamai module on a site using PHP 8.2.
  2. Visit /admin/config/akamai/config.
  3. Note the errors in the message region.

Proposed resolution

Declare the $keyProvider and $moduleHandler properties.

πŸ› Bug report
Status

Fixed

Version

5.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States nielsonm Portland. Oregon, US

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