RemoveModuleHandlerDeprecatedMethodsRector

Remove deprecated ModuleHandlerInterface::writeCache() calls and replace getHookInfo() with []

-$this->moduleHandler->writeCache();
 $this->moduleHandler->resetImplementations();

Configure your rector.php:

<?php

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

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

Other rules in the drupal/core 11.1 set