Problem/Motivation

System config needs to be installed before language config. This does not always happen in kernel tests.

Steps to reproduce

Run Drupal\Tests\language\Kernel\LanguageDependencyInjectionTest and no longer see the deprecation due to

    1) /builds/issue/drupal-3523596/core/modules/language/src/EventSubscriber/ConfigSubscriber.php:104
    Using null as an array offset is deprecated, use an empty string instead

Proposed resolution

Fix how config is installed so new is not used as a key.

Remaining tasks

User interface changes

None

Introduced terminology

N/a

API changes

None

Data model changes

None

Release notes snippet

N/a

Issue fork drupal-3557273

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

alexpott created an issue. See original summary.

alexpott’s picture

Issue tags: +PHP 8.5
alexpott’s picture

Status: Active » Needs review

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Last tab of the day.

I tested this one locally. I got 1 deprecation on core/modules/ckeditor5/tests/src/Kernel/LanguageTest.php
With the MR I got 0

Believe this one is good.

catch’s picture

Version: 11.x-dev » 11.3.x-dev
Status: Reviewed & tested by the community » Fixed

Committed/pushed to 11.x and cherry-picked to 11.3.x, thanks!

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

  • catch committed 62000897 on 11.3.x
    fix: #3557273 Fix deprecations due to kernel tests in \Drupal\language\...

  • catch committed a64b3b95 on 11.x
    fix: #3557273 Fix deprecations due to kernel tests in \Drupal\language\...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.