LogicException: The hook update_dependencies does not support attributes

Created on 19 September 2025, 19 days ago

Problem/Motivation

Running a PHPUnit test with webform at the latest core dev 11.x, we get a logic error and the test halts with the following:

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

Here is an example phpunit job from Gitlab Templates Downstream, the project used to test changes to the the contrib Gitlab Templates . The error is caused only by requiring webform in the project's composer.json. It is not actually being enabled or used in the tests.

This is not an urgent problem, as Core 11.3.0 is not planned for release until December 2025, according to the current release cycle , but I am raising this now, at the point when I found it, just so that it is recorded.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

6.3

Component

Code

Created by

🇬🇧United Kingdom jonathan1055

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

Comments & Activities

Not all content is available!

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

No activities found.

Production build 0.71.5 2024