Deprecated function: Creation of dynamic property Drupal\webform\WebformTokenManager

Created on 30 May 2023, over 1 year ago

Problem/Motivation

When using Drupal 10 and php 8.2 I get this deprecated notices:

 Deprecated function: Creation of dynamic property Drupal\webform\WebformTokenManager::$config is deprecated in Drupal\webform\WebformTokenManager->__construct() (line 108 of modules/contrib/webform/src/WebformTokenManager.php).

Drupal\webform\WebformTokenManager->__construct(Object, Object, Object, Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'webform.token_manager') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('webform.token_manager') (Line: 151)
Drupal\webform\Plugin\WebformElementBase::create(Object, Array, 'select', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('select', Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase->createInstance('select') (Line: 129)
Drupal\webform\Plugin\WebformElementManager->createInstance('select') (Line: 261)
Drupal\webform\Plugin\WebformElementManager->getElementInstance(Array) (Line: 196)
Drupal\webform\Plugin\WebformElementManager->processElement(Array) (Line: 354)
Drupal\webform\Utility\WebformElementHelper::process(Array) (Line: 64)
Drupal\webform\Plugin\Condition\Webform->buildConfigurationForm(Array, Object) (Line: 223)
Drupal\asset_injector\Form\AssetInjectorFormBase->buildConditionsInterface(Array, Object) (Line: 165)
Drupal\asset_injector\Form\AssetInjectorFormBase->form(Array, Object) (Line: 18)
Drupal\asset_injector\Form\AssetInjectorCssForm->form(Array, Object) (Line: 106)
Drupal\Core\Entity\EntityForm->buildForm(Array, Object)
call_user_func_array(Array, Array) (Line: 536)
Drupal\Core\Form\FormBuilder->retrieveForm('asset_injector_css_edit_form', Object) (Line: 283)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->getContentResult(Object, Object) (Line: 39)
Drupal\layout_builder\Controller\LayoutBuilderHtmlEntityFormController->getContentResult(Object, Object)
call_user_func_array(Array, Array) (Line: 123)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 580)
Drupal\Core\Render\Renderer->executeInRenderContext(Object, Object) (Line: 121)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 163)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 74)
Symfony\Component\HttpKernel\HttpKernel->handle(Object, 1, 1) (Line: 68)
Drupal\simple_oauth\HttpMiddleware\BasicAuthSwap->handle(Object, 1, 1) (Line: 58)
Drupal\Core\StackMiddleware\Session->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\KernelPreHandle->handle(Object, 1, 1) (Line: 106)
Drupal\page_cache\StackMiddleware\PageCache->pass(Object, 1, 1) (Line: 85)
Drupal\page_cache\StackMiddleware\PageCache->handle(Object, 1, 1) (Line: 48)
Drupal\Core\StackMiddleware\ReverseProxyMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\NegotiationMiddleware->handle(Object, 1, 1) (Line: 51)
Drupal\Core\StackMiddleware\StackedHttpKernel->handle(Object, 1, 1) (Line: 686)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

🐛 Bug report
Status

Closed: cannot reproduce

Version

2.17

Component

Code

Created by

🇪🇸Spain aleix

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024