file_icon_class() and file_icon_map() are deprecated and replaced with a utility class
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3450324. -->
Reported by: [timohuisman](https://www.drupal.org/user/3558376)
>>>
<h2>Drupal version</h2>
<p>10.3</p>
<h2>Drupal Rector version</h2>
<p>0.20.1</p>
<h2>Problem / Motivation</h2>
<p>See <a href="https://www.drupal.org/node/3411269">https://www.drupal.org/node/3411269</a></p>
<blockquote><p><code>file_icon_class()</code> and <code>file_icon_map()</code> are deprecated and replaced with static methods on <code>\Drupal\file\IconMimeTypes</code></p></blockquote>
<p><a href="https://dev.acquia.com/drupal11/deprecation_status/errors/26">https://dev.acquia.com/drupal11/deprecation_status/errors/26</a></p>
> Related issue: [Issue #3411266](https://www.drupal.org/node/3411266)
issue