Skip to content

Commit

Permalink
fix: Add proper levels for all symfony versions deprecated in the dif…
Browse files Browse the repository at this point in the history
…ferent versions of Drupal (#293)
  • Loading branch information
bbrala authored Mar 5, 2024
1 parent 18a3ea5 commit 27e1ef5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions config/drupal-10/drupal-10.0-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,13 @@
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->sets([
PHPUnitSetList::PHPUNIT_90,
SymfonySetList::SYMFONY_50,
SymfonySetList::SYMFONY_51,
SymfonySetList::SYMFONY_52,
SymfonySetList::SYMFONY_53,
SymfonySetList::SYMFONY_54,
SymfonySetList::SYMFONY_60,
SymfonySetList::SYMFONY_61,
SymfonySetList::SYMFONY_62,
TwigSetList::TWIG_240,
]);
Expand Down
5 changes: 5 additions & 0 deletions config/drupal-10/drupal-10.2-deprecations.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,13 @@
use DrupalRector\Rector\ValueObject\FunctionToStaticConfiguration;
use DrupalRector\Rector\ValueObject\MethodToMethodWithCheckConfiguration;
use Rector\Config\RectorConfig;
use Rector\Symfony\Set\SymfonySetList;

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

// https://www.drupal.org/node/2999981
$rectorConfig->ruleWithConfiguration(FunctionToStaticRector::class, [
new FunctionToStaticConfiguration('10.2.0', 'format_size', '\Drupal\Core\StringTranslation\ByteSizeMarkup', 'create'),
Expand Down

0 comments on commit 27e1ef5

Please sign in to comment.