Deprecated function: Creation of dynamic property

Created on 2 February 2023, over 1 year ago
Updated 15 May 2023, about 1 year ago

Problem/Motivation

I have following error using D10.0.2 and PHP 8.2:

Deprecated function: Creation of dynamic property Drupal\splide\Plugin\Filter\SplideFilter::$admin is deprecated in Drupal\splide\Plugin\Filter\SplideFilter::create() (line 41 of modules/contrib/splide/src/Plugin/Filter/SplideFilter.php).
Drupal\splide\Plugin\Filter\SplideFilter::create(Object, Array, 'splide_filter', Array) (Line: 21)
Drupal\Core\Plugin\Factory\ContainerFactory->createInstance('splide_filter', Array) (Line: 76)
Drupal\Component\Plugin\PluginManagerBase->createInstance('splide_filter', Array) (Line: 81)
Drupal\Core\Plugin\DefaultLazyPluginCollection->initializePlugin('splide_filter') (Line: 76)
Drupal\filter\FilterPluginCollection->initializePlugin('splide_filter') (Line: 54)
Drupal\filter\FilterPluginCollection->getAll() (Line: 83)
Drupal\filter\FilterPluginCollection->sort() (Line: 144)
Drupal\filter\Entity\FilterFormat->filters() (Line: 156)
Drupal\filter\Entity\FilterFormat->getPluginCollections() (Line: 347)
Drupal\Core\Config\Entity\ConfigEntityBase->__sleep()
serialize(Array) (Line: 245)
Drupal\Core\Cache\DatabaseBackend->doSetMultiple(Array) (Line: 193)
Drupal\Core\Cache\DatabaseBackend->setMultiple(Array) (Line: 177)
Drupal\Core\Cache\DatabaseBackend->set('filter_formats:pl', Array, -1, Array) (Line: 108)
filter_formats(Object) (Line: 134)
Drupal\filter\Element\TextFormat::processFormat(Array, Object, Array)
call_user_func_array(Array, Array) (Line: 1010)
Drupal\Core\Form\FormBuilder->doBuildForm('node_basicpage_edit_form', Array, Object) (Line: 1073)
Drupal\Core\Form\FormBuilder->doBuildForm('node_basicpage_edit_form', Array, Object) (Line: 1073)
Drupal\Core\Form\FormBuilder->doBuildForm('node_basicpage_edit_form', Array, Object) (Line: 1073)
Drupal\Core\Form\FormBuilder->doBuildForm('node_basicpage_edit_form', Array, Object) (Line: 577)
Drupal\Core\Form\FormBuilder->processForm('node_basicpage_edit_form', Array, Object) (Line: 323)
Drupal\Core\Form\FormBuilder->buildForm(Object, Object) (Line: 73)
Drupal\Core\Controller\FormController->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: 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: 681)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)
📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇵🇱Poland bronisMateusz

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