Skip to content

Commit dfec6fd

Browse files
authored
[Symfony 7.2] Add SetLList (#684)
1 parent ecf4d7d commit dfec6fd

File tree

3 files changed

+25
-0
lines changed

3 files changed

+25
-0
lines changed

config/sets/symfony/symfony72.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Renaming\Rector\Name\RenameClassRector;
7+
8+
// @see https://github.com/symfony/symfony/blame/7.2/UPGRADE-7.2.md
9+
10+
return RectorConfig::configure()
11+
->withConfiguredRule(RenameClassRector::class, [
12+
// @see https://github.com/symfony/symfony/blob/7.2/UPGRADE-7.2.md#serializer
13+
'Symfony\Component\Serializer\NameConverter\AdvancedNameConverterInterface' => 'Symfony\Component\Serializer\NameConverter\NameConverterInterface',
14+
]);

src/Set/SetProvider/SymfonySetProvider.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ public function provide(): array
168168
'7.1',
169169
__DIR__ . '/../../../config/sets/symfony/symfony71.php'
170170
),
171+
new ComposerTriggeredSet(
172+
SetGroup::SYMFONY,
173+
'symfony/*',
174+
'7.2',
175+
__DIR__ . '/../../../config/sets/symfony/symfony72.php'
176+
),
171177

172178
new Set(SetGroup::SYMFONY, 'Configs', __DIR__ . '/../../../config/sets/symfony/configs.php'),
173179
new Set(

src/Set/SymfonySetList.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,11 @@ final class SymfonySetList
155155
*/
156156
final public const SYMFONY_71 = __DIR__ . '/../../config/sets/symfony/symfony71.php';
157157

158+
/**
159+
* @var string
160+
*/
161+
final public const SYMFONY_72 = __DIR__ . '/../../config/sets/symfony/symfony72.php';
162+
158163
/**
159164
* @var string
160165
*/

0 commit comments

Comments
 (0)