Skip to content

Commit

Permalink
Update rector.php (#199)
Browse files Browse the repository at this point in the history
  • Loading branch information
paulsheldrake authored Sep 7, 2024
1 parent 10b41b2 commit c524461
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -18,8 +18,7 @@
Drupal10SetList::DRUPAL_10,
]);

$drupalFinder = new DrupalFinder();
$drupalFinder->locateRoot(__DIR__);
$drupalFinder = new DrupalFinderComposerRuntime();
$drupalRoot = $drupalFinder->getDrupalRoot();
$rectorConfig->autoloadPaths([
$drupalRoot . '/core',
Expand Down

0 comments on commit c524461

Please sign in to comment.