Skip to content

Commit 27e1ef5

Browse files
authored
fix: Add proper levels for all symfony versions deprecated in the different versions of Drupal (#293)
1 parent 18a3ea5 commit 27e1ef5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@
1111
return static function (RectorConfig $rectorConfig): void {
1212
$rectorConfig->sets([
1313
PHPUnitSetList::PHPUNIT_90,
14+
SymfonySetList::SYMFONY_50,
15+
SymfonySetList::SYMFONY_51,
16+
SymfonySetList::SYMFONY_52,
17+
SymfonySetList::SYMFONY_53,
18+
SymfonySetList::SYMFONY_54,
19+
SymfonySetList::SYMFONY_60,
20+
SymfonySetList::SYMFONY_61,
1421
SymfonySetList::SYMFONY_62,
1522
TwigSetList::TWIG_240,
1623
]);

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@
77
use DrupalRector\Rector\ValueObject\FunctionToStaticConfiguration;
88
use DrupalRector\Rector\ValueObject\MethodToMethodWithCheckConfiguration;
99
use Rector\Config\RectorConfig;
10+
use Rector\Symfony\Set\SymfonySetList;
1011

1112
return static function (RectorConfig $rectorConfig): void {
13+
$rectorConfig->sets([
14+
SymfonySetList::SYMFONY_64,
15+
]);
16+
1217
// https://www.drupal.org/node/2999981
1318
$rectorConfig->ruleWithConfiguration(FunctionToStaticRector::class, [
1419
new FunctionToStaticConfiguration('10.2.0', 'format_size', '\Drupal\Core\StringTranslation\ByteSizeMarkup', 'create'),

0 commit comments

Comments
 (0)