RemoveRootFromCreateConnectionOptionsFromUrlRector

Replace deprecated $root argument in Connection::createConnectionOptionsFromUrl() calls with NULL

-$connection->createConnectionOptionsFromUrl($url, $root);
+$connection->createConnectionOptionsFromUrl($url, NULL);

Configure your rector.php:

<?php

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

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

Other rules in the drupal/core 11.2 set