Skip to content

Commit 9da99ea

Browse files
authored
[deprecations] Remove deprecated GetClassToInstanceOfRector, UseIncrementAssignRector, DetectNodeCommand (#6278)
* Remove deprecated UseIncrementAssignRector * Remove deprecated GetClassToInstanceOfRector * Remove deprecated DetectNodeCommand * remove deprecated InlineCodeParser parse() * remove deprecated createNameScopeFromNode()
1 parent 0ee9020 commit 9da99ea

File tree

6 files changed

+0
-214
lines changed

6 files changed

+0
-214
lines changed

rules/CodeQuality/Rector/Identical/GetClassToInstanceOfRector.php

Lines changed: 0 additions & 64 deletions
This file was deleted.

rules/CodingStyle/Rector/Plus/UseIncrementAssignRector.php

Lines changed: 0 additions & 80 deletions
This file was deleted.

src/Console/Command/DetectNodeCommand.php

Lines changed: 0 additions & 43 deletions
This file was deleted.

src/DependencyInjection/LazyContainerFactory.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
use Rector\Configuration\ConfigInitializer;
5252
use Rector\Configuration\RenamedClassesDataCollector;
5353
use Rector\Console\Command\CustomRuleCommand;
54-
use Rector\Console\Command\DetectNodeCommand;
5554
use Rector\Console\Command\ListRulesCommand;
5655
use Rector\Console\Command\ProcessCommand;
5756
use Rector\Console\Command\SetupCICommand;
@@ -407,7 +406,6 @@ public function create(): RectorConfig
407406
$rectorConfig->singleton(SetupCICommand::class);
408407
$rectorConfig->singleton(ListRulesCommand::class);
409408
$rectorConfig->singleton(CustomRuleCommand::class);
410-
$rectorConfig->singleton(DetectNodeCommand::class);
411409

412410
$rectorConfig->when(ListRulesCommand::class)
413411
->needs('$rectors')

src/PhpParser/Parser/InlineCodeParser.php

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -66,22 +66,6 @@ public function __construct(
6666
) {
6767
}
6868

69-
/**
70-
* @return Stmt[]
71-
*
72-
* @api
73-
* @deprecated use parseFile() or parseString() instead
74-
*/
75-
public function parse(string $content): array
76-
{
77-
// to cover files too
78-
if (is_file($content)) {
79-
$content = FileSystem::read($content);
80-
}
81-
82-
return $this->parseCode($content);
83-
}
84-
8569
/**
8670
* @api downgrade
8771
*

src/StaticTypeMapper/Naming/NameScopeFactory.php

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,6 @@ public function createNameScopeFromNodeWithoutTemplateTypes(Node $node): NameSco
4242
return new NameScope($namespace, $usesAliasesToNames, $className);
4343
}
4444

45-
/**
46-
* @api
47-
* @deprecated Use createNameScopeFromNodeWithoutTemplateTypes() instead, as same
48-
*/
49-
public function createNameScopeFromNode(Node $node): NameScope
50-
{
51-
return $this->createNameScopeFromNodeWithoutTemplateTypes($node);
52-
}
53-
5445
/**
5546
* @param array<Use_|GroupUse> $useNodes
5647
* @return array<string, string>

0 commit comments

Comments
 (0)