Create rule for `drupal_get_messages()` deprecated functionality
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3165613. -->
Reported by: [devad](https://www.drupal.org/user/2268520)
>>>
<p>Just a feature request to create rule for drupal_get_messages() if possible.</p>
<p>Upgrade status message:</p>
<p>Call to deprecated function drupal_get_messages(). Deprecated in drupal:8.5.0 and is removed from drupal:9.0.0. Use Drupal\Core\Messenger\MessengerInterface::all() or \Drupal\Core\Messenger\MessengerInterface::messagesByType() instead.</p>
issue