Deprecated function: Optional parameter $reset declared before required parameter $encodesvg

Created on 18 November 2022, about 2 years ago
Updated 18 September 2023, over 1 year ago

Problem/Motivation

After update to latest version i get this error

Deprecated function: Optional parameter $reset declared before required parameter $encodesvg is implicitly treated as a required parameter in include() (line 571 of /var/www/html/vendor/composer/ClassLoader.php).
include('/var/www/html/web/core/includes/bootstrap.inc') (Line: 571)
Composer\Autoload\includeFile('/var/www/html/web/modules/contrib/iminify/src/IMinifyCss.php') (Line: 428)
Composer\Autoload\ClassLoader->loadClass('Drupal\iminify\IMinifyCss') (Line: 263)
Drupal\Component\DependencyInjection\Container->createService(Array, 'iminify_css') (Line: 177)
Drupal\Component\DependencyInjection\Container->get('iminify_css') (Line: 197)
Drupal::service('iminify_css') (Line: 75)
iminify_form_system_performance_settings_alter(Array, Object, 'system_performance_settings') (Line: 562)
Drupal\Core\Extension\ModuleHandler->alter('form', Array, Object, 'system_performance_settings') (Line: 838)
Drupal\Core\Form\FormBuilder->prepareForm('system_performance_settings', Array, Object) (Line: 282)
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: 124)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->wrapControllerExecutionInRenderContext(Array, Array) (Line: 97)
Drupal\Core\EventSubscriber\EarlyRenderingControllerWrapperSubscriber->Drupal\Core\EventSubscriber\{closure}() (Line: 169)
Symfony\Component\HttpKernel\HttpKernel->handleRaw(Object, 1) (Line: 81)
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: 130)
Drupal\cdn\StackMiddleware\DuplicateContentPreventionMiddleware->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: 23)
Stack\StackedHttpKernel->handle(Object, 1, 1) (Line: 707)
Drupal\Core\DrupalKernel->handle(Object) (Line: 19)

Steps to reproduce

Enable module
Go to /admin/config/development/performance

🐛 Bug report
Status

Needs review

Version

1.4

Component

Code

Created by

🇮🇹Italy trickfun

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024