Fix Issue Deprecated function: Creation of dynamic property

Created on 10 December 2023, over 1 year 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

Active

Version

5.1

Component

Code

Created by

🇯🇴Jordan Qusai Taha Amman

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