MastermindsParserToNativeParserRector

Replace deprecated MastermindsParser with NativeParser

-use Symfony\Component\HtmlSanitizer\Parser\MastermindsParser;
-
-$parser = new MastermindsParser();
+$parser = new \Symfony\Component\HtmlSanitizer\Parser\NativeParser();

Configure your rector.php:

<?php

use Rector\Config\RectorConfig;
use Rector\Symfony\Symfony80\Rector\New_\MastermindsParserToNativeParserRector;

return RectorConfig::configure()
    ->withRules([
        MastermindsParserToNativeParserRector::class,
    ]);
PACKAGE:  symfony/html-sanitizer >=7.4