Problem/Motivation
If you scan this module with Upgrade Status in Drupal 11, you see multiple warnings of the form, "unsafe usage of new static()." While these were tolerated in Drupal 10, we have better options available now.
Steps to reproduce
Use Upgrade Status to scan this module. Read the identified "problems."
Proposed resolution
Where autowiring is available, use that. Where it is not, use the "$instance = parent::create()" pattern or "new self()" instead of "new static()."
Remaining tasks
Make an MR. I'm assigning this to myself since I intend to work on it right away.
Comments
Comment #3
benstallings commentedComment #5
bojan_dev commentedLooks good, ty!