CheckMarkupToProcessedTextRector

Replace deprecated check_markup() calls with a processed_text render array.

-check_markup($text, $format_id);
+['#type' => 'processed_text', '#text' => $text, '#format' => $format_id];

Configure your rector.php:

<?php

use DrupalRector\Drupal11\Rector\Deprecation\CheckMarkupToProcessedTextRector;
use Rector\Config\RectorConfig;

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

Other rules in the drupal/core 11.4 set