Closed (duplicate)
Project:
Token
Version:
8.x-1.17
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 Aug 2026 at 07:10 UTC
Updated:
18 Sep 2026 at 09:31 UTC
Jump to comment: Most recent
Running PHPUnit tests with --display-deprecations on Drupal 11 shows:
token_requirements without a #[LegacyRequirementsHook] attribute is deprecated in drupal:11.3.0 and removed in drupal:13.0.0.
Run PHPUnit tests with --display-deprecations on Drupal 11.
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
Comment #2
ankit_kumarComment #5
berdirThis already happened in the dev version and will be in the next release.
Comment #7
ankit_kumarI checked the current Token module code and found that the `#[LegacyRequirementsHook]` attribute is already present in `token.install`.
The attribute appears to have been added in commit `e0953a5687d3cdeaecd45dd46d9d6bc0be61a71e`, which references issue #3586686.
Could someone confirm whether this existing change also resolves this issue, or whether any additional changes are required?
Thanks!
Comment #8
ankit_kumar