Configurable
CommentLinkBuilderConstructorRector
Remove deprecated $module_handler and $entity_type_manager arguments from CommentLinkBuilder::__construct()
-new \Drupal\comment\CommentLinkBuilder($currentUser, $commentManager, $moduleHandler, $stringTranslation, $entityTypeManager);
+new \Drupal\comment\CommentLinkBuilder($currentUser, $commentManager, $stringTranslation);
Configure your rector.php:
<?php
use DrupalRector\Drupal11\Rector\Deprecation\CommentLinkBuilderConstructorRector;
use DrupalRector\Rector\ValueObject\DrupalIntroducedVersionConfiguration;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withConfiguredRule(CommentLinkBuilderConstructorRector::class, [
new DrupalIntroducedVersionConfiguration('11.3.0'),
]);