Deprecated: Required parameter $language follows optional parameter $type

Created on 22 March 2023, about 2 years ago
Updated 23 March 2023, about 2 years ago

Problem/Motivation

Deprecation message on top of the whole site (on first run only)

Deprecated: Required parameter $language follows optional parameter $type in web/core/modules/language/src/ConfigurableLanguageManager.php on line 238

PHPSortm also gives notice on this line.

Steps to reproduce

PHP 8.0
Drupal 9.5.5 (probably also older)

Proposed resolution

Fix this

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Closed: works as designed

Version

9.5

Component
Language system 

Last updated 7 days ago

  • Maintained by
  • 🇩🇪Germany @sun
Created by

🇱🇻Latvia biguzis

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

Comments & Activities

  • Issue created by @biguzis
  • 🇮🇹Italy apaderno Brescia, 🇮🇹

    None of the methods defined in the ConfigurableLanguageManager class or its parent class require a $type and a $language parameter. For what I can see, those parameters are not passed to any called method.

  • Status changed to Postponed: needs info about 2 years ago
  • In Drupal 9.5.5 there is neither a function call nor a function declaration on line 238 of that file. Is this a patched installation of Drupal?

  • Status changed to Closed: works as designed about 2 years ago
  • 🇱🇻Latvia biguzis

    Indeed this comes from and old patch (#2313309). Closing.

Production build 0.71.5 2024