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

Created on 10 December 2023, 6 months ago
Updated 24 April 2024, about 2 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

RTBC

Version

5.1

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.69.0 2024