l() is incorrectly replaced with a Link object
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3160274. --> Reported by: [joachim](https://www.drupal.org/user/107701) >>> <p>The bot suggested this replacement:</p> <pre>-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $description .= ' ' . \Drupal::l(t('[documentation]'), $url);<br>+&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; $description .= ' ' . Link::fromTextAndUrl(t('[documentation]'), $url);</pre><p>That's not quite right, as l() returns a string, but Link::fromTextAndUrl() returns an object.</p>
issue