- Issue created by @Qusai Taha
- Issue was unassigned.
- Status changed to Needs review
6 months ago 1:19pm 10 December 2023 - Status changed to RTBC
about 2 months ago 12:23am 24 April 2024
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).
Install the module on the Drupal site with PHP 8.2 version
Apply the patch to fix the deprecated code
5.1
Code
The issue particularly affects sites running on PHP version 8.2.0 or later.