SafeMarkupFormatRector

Fixes deprecated SafeMarkup::format() calls

-$safe_string_markup_object = \Drupal\Component\Utility\SafeMarkup::format('hello world');
+$safe_string_markup_object = new \Drupal\Component\Render\FormattableMarkup('hello world');

Configure your rector.php:

<?php

use DrupalRector\Drupal8\Rector\Deprecation\SafeMarkupFormatRector;
use Rector\Config\RectorConfig;

return RectorConfig::configure()
    ->withRules([
        SafeMarkupFormatRector::class,
    ]);