Deprecated function: Creation of dynamic property Drupal\micon\MiconIconManager::$cacheKey is deprecated in Drupal\micon\MiconIconManager->setCacheBackend()

Created on 31 May 2023, over 1 year ago
Updated 1 June 2023, over 1 year ago

Problem/Motivation

Installing the module and going to "/admin/structure/micon" under Drupal 10, will lead to the following deprecation notice:

Deprecated function: Creation of dynamic property Drupal\micon\MiconIconManager::$cacheKey is deprecated in Drupal\micon\MiconIconManager->setCacheBackend() (line 124 of modules/contrib/micon/src/MiconIconManager.php).
Drupal\micon\MiconIconManager->setCacheBackend(Object, 'micon.icons', Array) (Line: 40)
Drupal\micon\MiconIconManager->__construct(Object, Object) (Line: 259)
Drupal\Component\DependencyInjection\Container->createService(Array, 'micon.icon.manager') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('micon.icon.manager') (Line: 197)
Drupal::service('micon.icon.manager') (Line: 79)
Drupal\micon\MiconIconize->__construct('Package', Array, Array, Object) (Line: 43)
Drupal\micon\MiconListBuilder->micon('Package') (Line: 21)
Drupal\micon\MiconListBuilder->buildHeader() (Line: 209)
Drupal\Core\Entity\EntityListBuilder->render() (Line: 62)
Drupal\micon\MiconListBuilder->render() (Line: 23)
Drupal\Core\Entity\Controller\EntityListController->listing('micon')
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: 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: 42)
Drupal\tracer\StackMiddleware\TracesMiddleware->handle(Object, 1, 1) (Line: 34)
Drupal\webprofiler\StackMiddleware\WebprofilerMiddleware->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)

Steps to reproduce

Proposed resolution

Fix the problem.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

🇩🇪Germany Grevil

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

Comments & Activities

Production build 0.71.5 2024