Fatal error with Drupal 10.1

Created on 14 March 2023, over 1 year ago
Updated 28 June 2023, over 1 year ago

Problem/Motivation

After installing this module against Drupal 10.1.x the following error appears.

Fatal error: Declaration of Drupal\cl_server\Asset\UnoptimizedAssetResolver::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 /data/app/modules/contrib/cl_server/src/Asset/UnoptimizedAssetResolver.php on line 44

This is due to an additional $language parameter added to the interface in 🐛 Stampedes and cold cache performance issues with css/js aggregation Fixed .

Steps to reproduce

N/A

Proposed resolution

Add $language parameter and pass it to the resolver.

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Closed: outdated

Version

2.0

Component

Code

Created by

🇦🇺Australia mstrelan

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

Comments & Activities

Production build 0.71.5 2024