Skip to content

Commit 0f74d74

Browse files
committed
add symfony-contracts
1 parent 793113d commit 0f74d74

3 files changed

Lines changed: 20 additions & 0 deletions

File tree

config/sets/symfony/symfony6/symfony60.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
$rectorConfig->import(__DIR__ . '/symfony-return-types.php');
2121
$rectorConfig->import(__DIR__ . '/symfony60/symfony60-dependency-injection.php');
22+
$rectorConfig->import(__DIR__ . '/symfony60/symfony60-contracts.php');
2223

2324
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
2425
// @see https://github.com/symfony/symfony/pull/39484
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
use Rector\Renaming\Rector\Name\RenameClassRector;
7+
8+
return static function (RectorConfig $rectorConfig): void {
9+
$rectorConfig->ruleWithConfiguration(RenameClassRector::class, [
10+
// @see https://github.com/symfony/symfony/pull/39484
11+
'Symfony\Contracts\HttpClient\HttpClientInterface\RemoteJsonManifestVersionStrategy' => 'Symfony\Component\Asset\VersionStrategy\JsonManifestVersionStrategy',
12+
]);
13+
};

src/Set/SetProvider/Symfony6SetProvider.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ public function provide(): array
3131
__DIR__ . '/../../../config/sets/symfony/symfony6/symfony60/symfony60-dependency-injection.php'
3232
),
3333

34+
new ComposerTriggeredSet(
35+
SetGroup::SYMFONY,
36+
'symfony/contracts',
37+
'6.0',
38+
__DIR__ . '/../../../config/sets/symfony/symfony6/symfony60/symfony60-contracts.php'
39+
),
3440

3541
new ComposerTriggeredSet(
3642
SetGroup::SYMFONY,

0 commit comments

Comments
 (0)