Problem/Motivation

Looks like some copy-paste issue in the BC layer: https://git.drupalcode.org/project/drupal/-/blob/11.4.x/core/lib/Drupal/...

This results in a fatal when a caller invokes the constructor without the new $fast_cache argument, e.g. a decorator service configured via Symfony autowiring, since $fast_cache has no type-hint and therefore cannot be autowired.

Main is not affected naturally.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

Issue fork drupal-3613047

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

graber created an issue. See original summary.

berdir made their first commit to this issue’s fork.

berdir’s picture

It's not a copy paste mistake, it's the normal approach for inserted arguments, so if someone would have provided them before it would be the language manager. However, what it account for is that it has a default value and the arguments were already optional.

berdir’s picture

Version: 11.4.x-dev » 11.x-dev
Status: Active » Needs review

This doesn't need to go into main but we need a separate issue for that to remove the BC layer there.