Skip to content

Commit

Permalink
Merge pull request #290 from timohuisman/bugfix/replace-depcrecated-s…
Browse files Browse the repository at this point in the history
…etlists

refactor: replace deprecated LevelSetLists for PHPUnit, Symfony and Twig
  • Loading branch information
bbrala authored Jan 28, 2024
2 parents 4a2e739 + 95c95e6 commit 2ccc94f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions config/drupal-10/drupal-10.0-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

use DrupalRector\Rector\PHPUnit\ShouldCallParentMethodsRector;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\TwigLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;
use Rector\Symfony\Set\SymfonySetList;
use Rector\Symfony\Set\TwigSetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
SymfonyLevelSetList::UP_TO_SYMFONY_62,
TwigLevelSetList::UP_TO_TWIG_240,
PHPUnitSetList::PHPUNIT_90,
SymfonySetList::SYMFONY_62,
TwigSetList::TWIG_240,
]);

$rectorConfig->rule(ShouldCallParentMethodsRector::class);
Expand Down
4 changes: 2 additions & 2 deletions config/drupal-10/drupal-10.1-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
use DrupalRector\Rector\ValueObject\DrupalIntroducedVersionConfiguration;
use DrupalRector\Rector\ValueObject\FunctionToStaticConfiguration;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonyLevelSetList;
use Rector\Symfony\Set\SymfonySetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
SymfonyLevelSetList::UP_TO_SYMFONY_63,
SymfonySetList::SYMFONY_63,
]);

// https://www.drupal.org/node/3244583
Expand Down
4 changes: 2 additions & 2 deletions config/drupal-9/drupal-9-all-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
use DrupalRector\Services\AddCommentService;
use DrupalRector\Set\Drupal9SetList;
use Rector\Config\RectorConfig;
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
use Rector\PHPUnit\Set\PHPUnitSetList;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->singleton(AddCommentService::class, function () {
Expand All @@ -17,7 +17,7 @@
Drupal9SetList::DRUPAL_92,
Drupal9SetList::DRUPAL_93,
Drupal9SetList::DRUPAL_94,
PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
PHPUnitSetList::PHPUNIT_90,
]);

$rectorConfig->bootstrapFiles([
Expand Down

0 comments on commit 2ccc94f

Please sign in to comment.