Rector will produce changes outside scope, or non cs-compliant code in docblocks
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3281750. -->
Reported by: [bbrala](https://www.drupal.org/user/3366066)
>>>
<h2>Drupal version</h2>
<p>any</p>
<h2>Drupal Rector version</h2>
<p>0.12.2</p>
<h2>Problem / Motivation</h2>
<p>Because of changes in rector (<a href="https://github.com/rectorphp/rector-src/pull/1817">rectorphp/rector-src/pull/1817</a>) we cannot ignore auto imports for docblocks anymore. This means the only way to run drupal rector to fix deprecations without other docblock changes is disabling the auto import names setting.</p>
<p>Unfortunately this means we can get code that does not adhere to the codestyle.</p>
<pre>- public function onResponse(FilterResponseEvent $event) {<br>+ public function onResponse(\Symfony\Component\HttpKernel\Event\ResponseEvent $event) {</pre><p>mglaman thinks we might be able to do some post processing to fix this. We talked about this a little in this <a href="https://drupal.slack.com/archives/C0100FHELV9/p1653143865302609">thread on Slack</a>.</p>
> Related issue: [Issue #3279548](https://www.drupal.org/node/3279548)
issue