Automate MR review using PHPCS: disallow `\Drupal::service('something')`, require `\Drupal::service(Something::class)` whenever possible, with automatic fixing
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3581133. --> Reported by: [wim leers](https://www.drupal.org/user/99777) Related to !797 >>> <h3 id="overview">Overview</h3> <pre>:pray: Let's use the `FQCN::class` wherever we can. Reduces magic, makes it easier to navigate &amp; understand these tests.</pre><p> &mdash; yours truly at <a href="https://git.drupalcode.org/project/canvas/-/merge_requests/651#note_727491">https://git.drupalcode.org/project/canvas/-/merge_requests/651#note_727491</a></p> <h3 id="proposed-resolution">Proposed resolution</h3> <p>Automate this feedback.</p> <h3 id="ui-changes">User interface changes</h3> <p>None.</p> > Related issue: [Issue #3575719](https://www.drupal.org/node/3575719)
issue