Skip to content

Commit

Permalink
fix: revert adding the Hook into its own set and move class
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrala committed Oct 20, 2024
1 parent 21b797a commit 5fdfdbb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 34 deletions.
13 changes: 0 additions & 13 deletions config/hook-convert/hook-convert.php

This file was deleted.

11 changes: 3 additions & 8 deletions rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
declare(strict_types=1);

use DrupalFinder\DrupalFinder;
use DrupalRector\Set\HookConvertSetList;
use DrupalRector\Set\Drupal10SetList;
use DrupalRector\Set\Drupal8SetList;
use DrupalRector\Set\Drupal9SetList;
Expand All @@ -13,14 +12,10 @@
// Adjust the set lists to be more granular to your Drupal requirements.
// @todo find out how to only load the relevant rector rules.
// Should we try and load \Drupal::VERSION and check?
// $rectorConfig->sets([
// Drupal8SetList::DRUPAL_8,
// Drupal9SetList::DRUPAL_9,
// Drupal10SetList::DRUPAL_10,
// ]);

$rectorConfig->sets([
HookConvertSetList::HOOK_CONVERT,
Drupal8SetList::DRUPAL_8,
Drupal9SetList::DRUPAL_9,
Drupal10SetList::DRUPAL_10,
]);

$drupalFinder = new DrupalFinder();

Check failure on line 21 in rector.php

View workflow job for this annotation

GitHub Actions / Static analysis with PHPStan

Instantiation of deprecated class DrupalFinder\DrupalFinder: in drupal-finder:1.3.0 and is removed from drupal-finder:2.0.0. Use \DrupalFinder\DrupalFinderComposerRuntime instead.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

declare(strict_types=1);

namespace DrupalRector\Convert\Rector;
namespace DrupalRector\Rector\Convert;

use Composer\InstalledVersions;
use PhpParser\Node;
Expand Down
12 changes: 0 additions & 12 deletions src/Set/HookConvertSetList.php

This file was deleted.

0 comments on commit 5fdfdbb

Please sign in to comment.