Fix PHP 8.2 Deprecated Issue with function: Creation of dynamic property

Created on 10 December 2023, about 1 year ago
Updated 5 September 2024, 4 months ago

Problem/Motivation

Fix Deprecated function: Creation of dynamic property when trying to install the module on PHP 8.2

Deprecated function: Creation of dynamic property Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager::$themeHandler is deprecated in Drupal\twig_extender\Plugin\Twig\TwigExtensionsPluginManager->__construct() (line 42 of modules/contrib/twig_extender/src/Plugin/Twig/TwigExtensionsPluginManager.php).

Deprecated function: Creation of dynamic property Drupal\twig_extender\TwigExtenderService::$pluginManager is deprecated in Drupal\twig_extender\TwigExtenderService->__construct() (line 30 of modules/contrib/twig_extender/src/TwigExtenderService.php).

Steps to reproduce

Install the module on the Drupal site with PHP 8.2 version

Proposed resolution

Apply the patch to fix the deprecated code

πŸ› Bug report
Status

Needs work

Version

5.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Qusai Taha Amman

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