Skip to content

Commit 2ccc94f

Browse files
authored
Merge pull request #290 from timohuisman/bugfix/replace-depcrecated-setlists
refactor: replace deprecated LevelSetLists for PHPUnit, Symfony and Twig
2 parents 4a2e739 + 95c95e6 commit 2ccc94f

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

config/drupal-10/drupal-10.0-deprecations.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44

55
use DrupalRector\Rector\PHPUnit\ShouldCallParentMethodsRector;
66
use Rector\Config\RectorConfig;
7-
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
8-
use Rector\Symfony\Set\SymfonyLevelSetList;
9-
use Rector\Symfony\Set\TwigLevelSetList;
7+
use Rector\PHPUnit\Set\PHPUnitSetList;
8+
use Rector\Symfony\Set\SymfonySetList;
9+
use Rector\Symfony\Set\TwigSetList;
1010

1111
return static function (RectorConfig $rectorConfig): void {
1212
$rectorConfig->sets([
13-
PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
14-
SymfonyLevelSetList::UP_TO_SYMFONY_62,
15-
TwigLevelSetList::UP_TO_TWIG_240,
13+
PHPUnitSetList::PHPUNIT_90,
14+
SymfonySetList::SYMFONY_62,
15+
TwigSetList::TWIG_240,
1616
]);
1717

1818
$rectorConfig->rule(ShouldCallParentMethodsRector::class);

config/drupal-10/drupal-10.1-deprecations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
use DrupalRector\Rector\ValueObject\DrupalIntroducedVersionConfiguration;
99
use DrupalRector\Rector\ValueObject\FunctionToStaticConfiguration;
1010
use Rector\Config\RectorConfig;
11-
use Rector\Symfony\Set\SymfonyLevelSetList;
11+
use Rector\Symfony\Set\SymfonySetList;
1212

1313
return static function (RectorConfig $rectorConfig): void {
1414
$rectorConfig->sets([
15-
SymfonyLevelSetList::UP_TO_SYMFONY_63,
15+
SymfonySetList::SYMFONY_63,
1616
]);
1717

1818
// https://www.drupal.org/node/3244583

config/drupal-9/drupal-9-all-deprecations.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use DrupalRector\Services\AddCommentService;
66
use DrupalRector\Set\Drupal9SetList;
77
use Rector\Config\RectorConfig;
8-
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
8+
use Rector\PHPUnit\Set\PHPUnitSetList;
99

1010
return static function (RectorConfig $rectorConfig): void {
1111
$rectorConfig->singleton(AddCommentService::class, function () {
@@ -17,7 +17,7 @@
1717
Drupal9SetList::DRUPAL_92,
1818
Drupal9SetList::DRUPAL_93,
1919
Drupal9SetList::DRUPAL_94,
20-
PHPUnitLevelSetList::UP_TO_PHPUNIT_90,
20+
PHPUnitSetList::PHPUNIT_90,
2121
]);
2222

2323
$rectorConfig->bootstrapFiles([

0 commit comments

Comments
 (0)