FormElement annotation is incorrectly converted to attribute
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3579141. -->
Reported by: [mxr576](https://www.drupal.org/user/315522)
>>>
<h2>Drupal version</h2>
<p>11.3.5</p>
<h2>Drupal Rector version</h2>
<p>0.21.1 (Rector 1.2.10)</p>
<h2>Problem / Motivation</h2>
<p>Element id gets lost on conversion. </p>
<pre>diff --git a/web/modules/custom/foo/src/Element/EligibleProductForCurrentUserSelect.php b/web/modules/custom/foo/src/Element/EligibleProductForCurrentUserSelect.php<br>--- a/web/modules/custom/foo/src/Element/EligibleProductForCurrentUserSelect.php (revision 68cef226288faed600564ebd34b6ec2ad48e7a6a)<br>+++ b/web/modules/custom/foo/src/Element/EligibleProductForCurrentUserSelect.php (date 1773417704658)<br>@@ -33,10 +33,10 @@<br> *<br> * @see \Drupal\foo\Plugin\WebformElement\EligibleProductForCurrentUserSelect<br> *<br>- * @FormElement("foo_eligible_product_for_current_user_select")<br> *<br> * @internal This class is not part of the module's public programming API.<br> */<br>+#[\Drupal\Core\Render\Attribute\FormElement]<br> final class EligibleProductForCurrentUserSelect extends Select {<br> <br> }</pre>
issue