8000 [Symfony 74] Rename Application::add() to Application::addCommand() · rectorphp/rector-symfony@0437fbc · GitHub
[go: up one dir, main page]

Skip to content

Commit 0437fbc

Browse files
committed
[Symfony 74] Rename Application::add() to Application::addCommand()
1 parent b2de1d5 commit 0437fbc

File tree

3 files changed

+30
-0
lines changed

3 files changed

+30
-0
lines changed
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\Config\RectorConfig;
6+
7+
// @see https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.4.md
8+
9+
return static function (RectorConfig $rectorConfig): void {
10+
$rectorConfig->import(__DIR__ . '/symfony74/symfony74-console.php');
11+
};
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\MethodCall\RenameMethodRector;
7+
use Rector\Renaming\ValueObject\MethodCallRename;
8+
9+
return static function (RectorConfig $rectorConfig): void {
10+
// @see https://github.com/symfony/symfony/blob/7.4/UPGRADE-7.4.md#console
11+
$rectorConfig->ruleWithConfiguration(RenameMethodRector::class, [
12+
new MethodCallRename('Symfony\Component\Console\Application', 'add', 'addCommand'),
13+
]);
14+
};

src/Set/SymfonySetList.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,11 @@ final class SymfonySetList
167167
*/
168168
final public const SYMFONY_73 = __DIR__ . '/../../config/sets/symfony/symfony7/symfony73.php';
169169

170+
/**
171+
* @var string
172+
*/
173+
final public const SYMFONY_74 = __DIR__ . '/../../config/sets/symfony/symfony7/symfony74.php';
174+
170175
/**
171176
* @var string
172177
*/

0 commit comments

Comments
 (0)
0