LoadAllIncludesRector

Replaces deprecated ModuleHandler::loadAllIncludes() with getModuleList() + loadInclude() loop

-$this->moduleHandler->loadAllIncludes('install');
+foreach ($this->moduleHandler->getModuleList() as $module => $filename) {
+    $this->moduleHandler->loadInclude($module, 'install');
+}

Configure your rector.php:

<?php

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

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

Other rules in the drupal/core 11.3 set