Problem/Motivation
Currently the simplenews codbase is set to report when DI hasn't been followed as a best practice. While this could be a goal for the future, we want to avoid people feeling obligated to make the CI happy by fixing these changes. This is partially because enabling DI created Backwards Incompatible changes and can break contributed and custom code that are based on the current constructor signatures (see #3613461: How to handle DI and affects to code (backwards incompatible breaking changes)).
Steps to reproduce
Proposed resolution
For now, have PHPStan not suggest DI upgrades.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork simplenews-3613483
Show commands
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
generalredneckComment #4
generalredneckThis leaves Deprecations and some other issues. I think we need to "know" about the deprecations, but that's going to be it's own task... and those may already be handled in the D12 upgrade issue.
The other issues may need to be handled in another issue. even.
Comment #5
adamps commentedGreat thanks.
Please could we use identifiers? It seems more precise rather than testing an error message. Here's what I had in another project:
I've just accepted the simplenews.drush.inc one so we could remove that already
Comment #6
generalredneckOh sweet. I remember you asking for that and then I forgot to look up how to do it. I'll get on that when I get a few later today.
Comment #7
generalredneckRebased and swapped over to your suggested markup. I hope you don't mind that I totally ripped the example word for word.
Comment #8
adamps commentedComment #10
adamps commented