GetRawContentRector

Fixes deprecated AssertLegacyTrait::getRawContent() calls

-$this->getRawContent();
+$this->getSession()->getPage()->getContent();

Configure your rector.php:

<?php

use DrupalRector\Drupal9\Rector\Deprecation\GetRawContentRector;
use Rector\Config\RectorConfig;

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