Configurable
RemoveRootFromConvertDbUrlRector
Remove deprecated string $root argument from Database::convertDbUrlToConnectionInfo()
-Database::convertDbUrlToConnectionInfo($url, $this->root, TRUE);
+Database::convertDbUrlToConnectionInfo($url, TRUE);
Configure your rector.php:
<?php
use DrupalRector\Drupal11\Rector\Deprecation\RemoveRootFromConvertDbUrlRector;
use DrupalRector\Rector\ValueObject\DrupalIntroducedVersionConfiguration;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withConfiguredRule(RemoveRootFromConvertDbUrlRector::class, [
new DrupalIntroducedVersionConfiguration('11.3.0'),
]);