Closed (fixed)
Project:
Tamper
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2026 at 18:39 UTC
Updated:
10 Jul 2026 at 15:55 UTC
Jump to comment: Most recent
If you scan this module with Upgrade Status in Drupal 11, you see many warnings of the form, "Unsafe usage of new static()." While those were tolerated in Drupal 10, we have better options now.
Use Upgrade Status module to scan this module.
Where autowiring is an option now, use that. Where it's not, use the $instance = parent::create() pattern, or new self() instead of static().
Make an MR. I'm assigning this to myself since I intend to work on it right away.
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 #3
benstallings commentedComment #6
mandclu commented