Deprecations in 3rd-party modules in Next Minor Drupal 11.3-dev

Created on 6 September 2025, 12 days ago

Problem/Motivation

PHPUnit tests at "next minor" produce deprecation warnings due to the 3rd-party modules that this branch has specified as requiring. This has only come to light recently, due to a new change where this actual gitlab_templates_downstream module is enabled in a phpunit test. See the changes for GitlabTemplatesDownstreamOneTest in MR29

All deprecation warnings are hiddden by default, which is the case in the "current" phpunit variant. However for "next minor" we are using SYMFONY_DEPRECATIONS_HELPER to expose them.

The log show 24 deprecations, for example

1) /builds/issue/gitlab_templates_downstream-3523139/web/core/lib/Drupal/Core/Hook/HookCollectorPass.php:513
webform_module_implements_alter without a #[LegacyModuleImplementsAlter] attribute is deprecated in drupal:11.2.0 and removed in drupal:12.0.0. See https://www.drupal.org/node/3496788

There are also internal PHPUnit deprecations, but these are not the cause of the amber job status. See 📌 Deprecate TestDiscovery test file scanning, use PHPUnit API instead Active which was fixed prior to the release of 11.2.

Steps to reproduce

Enable this module in a PHPUnit test.

Proposed resolution

Add a local file of deprecations to ignore, and append this to the core file, to avoid reporting them.

Remaining tasks

📌 Task
Status

Active

Component

PHPUnit

Created by

🇬🇧United Kingdom jonathan1055

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024