Update PHPCS config to match Drupal 11, and fix 1 incorrect use of `<exclude-pattern>`
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3554303. --> Reported by: [penyaskito](https://www.drupal.org/user/959536) Related to !260 >>> <!-- &#128071;&#128071;&#128071;&#128071;&#128071;&#128071;&#128071;&#128071;&#128071;&#128071; --><!-- &#10071;&#65039; Delete the value in the "Parent issue" field --><!-- &#10071;&#65039; below and assign the issue to yourself. --><!-- &#10071;&#65039; (There's apparently no way to automate this.) --><!-- &#128070;&#128070;&#128070;&#128070;&#128070;&#128070;&#128070;&#128070;&#128070;&#128070; --><p>Our <code>phpcs-rules-match-drupal-11</code> CI job currently fails with the following error:</p> <pre>&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;&#128293;<br>Error: core.phpcs.xml.dist not up to date with Drupal 11.x core/phpcs.xml.dist. Please create an issue to update this file.</pre><p>This is that issue.</p> <p>To automatically update the file, just run this script from the module repository root:</p> <p><code>sh scripts/update-phpcs-config.sh</code></p> > Related issue: [Issue #3519792](https://www.drupal.org/node/3519792) > Related issue: [Issue #3511705](https://www.drupal.org/node/3511705) > Related issue: [Issue #3512890](https://www.drupal.org/node/3512890)
issue