From c52446135dfbdbbd710ef0e95bbafe199aa48025 Mon Sep 17 00:00:00 2001 From: Paul Sheldrake Date: Sat, 7 Sep 2024 12:45:07 -0700 Subject: [PATCH] Update rector.php (#199) --- rector.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/rector.php b/rector.php index c11ebde..c1bc0ec 100644 --- a/rector.php +++ b/rector.php @@ -2,7 +2,7 @@ declare(strict_types=1); -use DrupalFinder\DrupalFinder; +use DrupalFinder\DrupalFinderComposerRuntime; use DrupalRector\Set\Drupal10SetList; use DrupalRector\Set\Drupal8SetList; use DrupalRector\Set\Drupal9SetList; @@ -18,8 +18,7 @@ Drupal10SetList::DRUPAL_10, ]); - $drupalFinder = new DrupalFinder(); - $drupalFinder->locateRoot(__DIR__); + $drupalFinder = new DrupalFinderComposerRuntime(); $drupalRoot = $drupalFinder->getDrupalRoot(); $rectorConfig->autoloadPaths([ $drupalRoot . '/core',