Webform - LogicException: The hook update_dependencies does not support attributes

Created on 17 September 2025, 1 day ago
Updated 18 September 2025, about 14 hours ago

Problem/Motivation

We added the webform module as a project dependency, to provide test coverage for acquiring 3rd-party modules via composer.json

However, since yesterday core 11.x (which we use for Next Minor) has started reporting an error

LogicException: The hook update_dependencies on class Drupal\webform\Hook\WebformInstallUpdateHooks does not support attributes and must remain procedural.

Not only does this cause the job to end amber, but the error also prevents pre-existing deprecation messages from being displayed. For example, here is a d10-plus pipeline run yesterday in the canonical project. No errors, but 23 deprecations
https://git.drupalcode.org/project/gitlab_templates_downstream/-/jobs/65...

The same branch pipeline run today, with no commits since yesterday. We get the error, and the deprecations are not shown
https://git.drupalcode.org/project/gitlab_templates_downstream/-/jobs/65...

Proposed resolution

The aim is to have a reliably green downstream pipeline for Gitlab Templates testing. Maybe we need to re-evaluate this decision, or how we achieve it.

Remaining tasks

User interface changes

API changes

Data model changes

📌 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

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024