Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions config/sets/symfony/symfony8/symfony81.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;

// @see https://github.com/symfony/symfony/blob/8.1/UPGRADE-8.1.md
return static function (RectorConfig $rectorConfig): void {
$rectorConfig->import(__DIR__ . '/symfony81/symfony81-serializer.php');
};
14 changes: 14 additions & 0 deletions config/sets/symfony/symfony8/symfony81/symfony81-serializer.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

use Rector\Config\RectorConfig;
use Rector\Renaming\Rector\MethodCall\RenameMethodRector;
use Rector\Renaming\ValueObject\MethodCallRename;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
// @see https://github.com/symfony/symfony/blob/8.1/UPGRADE-8.1.md#serializer
new MethodCallRename('Symfony\Component\Serializer\Exception\PartialDenormalizationException', 'getErrors', 'getNotNormalizableValueErrors'),
]);
};
6 changes: 6 additions & 0 deletions src/Set/SetProvider/Symfony8SetProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ public function provide(): array
'8.0',
__DIR__ . '/../../../config/sets/symfony/symfony8/symfony80/symfony80-security-core.php'
),
new ComposerTriggeredSet(
SetGroup::SYMFONY,
'symfony/serializer',
'8.1',
__DIR__ . '/../../../config/sets/symfony/symfony8/symfony81/symfony81-serializer.php'
),
];
}
}
Loading