Fatal error: Declaration of Drupal\attachinline\Asset\AssetResolverDecorator::getCssAssets(Drupal\Core\Asset\AttachedAssetsInterface $assets, $optimize)

Created on 28 August 2023, over 1 year ago
Updated 23 September 2023, over 1 year ago

Problem/Motivation

Getting the following error in Drupal 10.1 due to this change :

Fatal error: Declaration of Drupal\attachinline\Asset\AssetResolverDecorator::getCssAssets(Drupal\Core\Asset\AttachedAssetsInterface $assets, $optimize) must be compatible with Drupal\Core\Asset\AssetResolverInterface::getCssAssets(Drupal\Core\Asset\AttachedAssetsInterface $assets, $optimize, ?Drupal\Core\Language\LanguageInterface $language = null) in web/modules/contrib/attachinline/src/Asset/AssetResolverDecorator.php on line 36

Steps to reproduce

  1. Install module on a Drupal 10.1 site and add the Drupal 10 compatibility fixes 📌 Automated Drupal 10 compatibility fixes Fixed
📌 Task
Status

Closed: duplicate

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024